Android
Use this guide to open an IDMe OAuth 2.0 flow from an Android app in the system browser. Read the native app integrations overview first.
Don’t load IDMe in an Android WebView. Use AppAuth for Android, Auth Tab, or Custom Tabs as described below.
Choose an approach
Add the AndroidX Browser library for Auth Tab or Custom Tabs:
Option 1: AppAuth for Android
Replace YOUR_SCOPE with your policy scope, and use the sandbox endpoints when testing.
Option 2: Auth Tab with Custom Tab fallback
Auth Tab opens a browser tab built for authentication and returns the redirect result directly to your app.
To use a custom scheme redirect with Auth Tab instead, pass the scheme, such as launch(authTabLauncher, authorizationUri, "com.example.app").
Option 3: Custom Tabs with an app link
Declare an app link for your redirect URI so Android sends the redirect back to your app instead of opening it in the browser.
Publish a Digital Asset Links file at https://example.com/.well-known/assetlinks.json so Android can verify that your app owns the domain. See Verify Android App Links.
Camera permissions
When IDMe runs in Auth Tab or a Custom Tab, the browser requests camera access for document, selfie, and liveness capture, including in-page capture by the IDMe Legal ID and face verification SDKs. Your app doesn’t need the CAMERA permission, a file chooser, or an onPermissionRequest handler for IDMe capture steps. Don’t switch to a WebView for camera steps.
Testing checklist
- The authorization URL opens in Auth Tab or a Custom Tab, not a
WebView. - The fallback path works on a device whose default browser doesn’t support Auth Tab.
- The app link opens your app directly. Run
adb shell pm get-app-links com.example.appand confirm the domain showsverified. - A member can sign in with a passkey.
- Document capture, selfie capture, and liveness checks complete on a physical device.
- Pressing back or closing the tab returns the member to a recoverable screen.
- A redirect with a mismatched
stateis rejected.