A sample Android native app integration with Onfido’s Web SDK, using Android WebView component.
This app is a simple demonstration of the minimum configurations that are required to integrate with onfido-sdk-ui using the Android native WebView component. The example uses Smart Capture Link. The app itself has minimal code and is written in Compose.
You can find more detailed documentation here:
- You will need to provide the following permissions in your
AndroidManifest.xmlfile:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />- Also you will need to implement
WebChromeClientto provide a way to provide required permissions and implement how do you want to handle the file chooser and capturing image from camera as this is not implemented by default inWebView(and is needed by some Onfido features). For reference check out theMainActivity.ktcode sample.