Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 1.52 KB

README.md

File metadata and controls

35 lines (20 loc) · 1.52 KB

WebView Android

A sample Android native app integration with Onfido’s Web SDK, using Android WebView component.

Summary

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:

Permissions

Android

  • 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 in WebView. For reference check the MainActivity.kt code sample.