Specific setup
SDK Key
Contact the CS / Onboarding team and request an SDK Key, providing the identifiers of your applications:
- Hostname (Web)
The Unico team will link the SDK Key to your hostname. You will receive your SDK Key to implement the UnicoConfig.
WebView permissions (Android)
When the Web SDK runs inside an Android WebView (Web SDK embedded in a native Android app), additional permissions and feature declarations are required in your AndroidManifest.xml:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.webkit.PermissionRequest" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-feature android:name="android.hardware.camera2.full" />
<uses-feature android:name="android.hardware.camera2.autofocus" />
When running, the Web SDK will request permission to open the camera for the WebView, which in turn will request the same permission from the native application. Your native app must have the necessary permissions set in the configuration files.
WebView permissions (iOS)
When the Web SDK runs inside an iOS WebView, the following keys are required in Info.plist:
<key>NSCameraUsageDescription</key>
<string>Camera usage description</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Location usage description</string>
Use SFSafariViewController for better DOM compatibility instead of WKWebView.