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 Android native WebView component. The example uses Smart Capture Link.
You can find more detailed documentation here:
- You will need to provide the following permissions in your
AndroidManifest.xml
file:
<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
WebChromeClient
to 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
. For reference check theMainActivity.kt
code sample.