GDPR Policy Localization
The SDK is now able to support localization of our GDPR terms and conditions which a user must agree if covered by the GDPR. The language of the policy is set via the search options.
// Country Code searchParams.countryCode = "BE" // Language Code searchParams.languageCode = "fr"
More on setting options can be found here.
SDK Lite Framework
We understand the need to keep the final application size down is essential for many end users especially in regions where older devices and slower/more expensive data connections are more of a norm. To help support our partners who are more conscious of the final app size we have released a smaller version of our framework. To achieve this, there are some essential things to know.
To reduce the size of the SDK, we had to remove a dependency in SDK lite that was utilized to power the following features.
- On-Device Exact Image Match (Slyce 2d) - Exact image match is the technology we use to map specific images (typically catalog pages, or promotion material) to exact product matches. In the full version of the SDK we can perform this function on-device, but in SDK Lite this will be performed on the server side.
- On-Device Contour Detection - Slyce lite does not include some of the on-device contour detection the full version of the SDK includes. This is utilized mostly in the UI to assist with some of the tracking and detection animations.
The iOS App Store will automatically “thin” your application's
.ipa file in iOS 9 and above. The full SlyceSDK adds roughly 3 MB to a thinned
.ipa, or about 7 MB to a “universal”
SlyceSDK Lite reduces the net size by approximately half – 1.6 MB for the thinned
.ipa and 3.3 MB for the universal
Link to SDK Lite:
You can download the SDK Lite from our public Github repository or via cocopods
Barcode Detection Enhancement
Slyce provides an on-device barcode detector as part of the SDK. In most instances, when a barcode is detected Slyce will search our barcode database of your products and return the relevant product. In some use cases you might want to do something else with that barcode value. For example, scan a receipt or coupon, then perform a different action. To be able to do this when using our Full UI mode you need to inform the SDK that you do not want to show the Slyce UI. Follow the steps below to enable disable the Slyce UI when a barcode is detected.
var options = [AnyHashable: Any]() options[SlyceOptionDisableBarcodeSearchTask] = true let _ = SlyceViewController(slyce: Slyce.shared(), mode: .universal, options: options, delegate: nil) // Present view controller here...
We exposed the theming value for the error code value when no products are returned or a user loses connection. This can now be themed to match your application colors. If you want to hide the error code value you can theme the value to match the background color.