Skip to content

Android native POC integrating with Web SDK using webview

Notifications You must be signed in to change notification settings

onfido/WebViewAndroid

Repository files navigation

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.

About

Android native POC integrating with Web SDK using webview

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published