Android React Wrapper
Android React Wrapper
Integrate IDmission's IDentity SDK into your Android React Native application.
Setup
-
1
Set up the React Native development environment based on your development and target OS.
Setting up the development environment → -
2
Download and unzip the ReactNativeResources archive. It contains the
Download ReactNativeSDK2AndroidResources →react-native,android_resources,reference, andandroid_codedirectories. -
3
Create an empty React Native application.
ShellCopynpx @react-native-community/cli init IDMTest -
4
Add JavaScript code. Copy and paste the contents of the
react-nativefolder into the main project folder. Overwrite files if required. -
5
Add React Native dependencies. In
package.json, update thedependenciesnode with the following.JSONCopy"dependencies": { "@react-native/new-app-screen": "0.83.1", "@react-navigation/native": "^7.1.28", "@react-navigation/native-stack": "^7.12.0", "@react-navigation/stack": "^7.7.1", "native-base": "^3.4.28", "react": "19.2.0", "react-dom": "^19.2.0", "react-native": "0.83.1", "react-native-gesture-handler": "^1.9.0", "react-native-safe-area-context": "^5.6.2", "react-native-screens": "^4.23.0", "react-native-svg": "^15.15.3" }, -
6
Delete the
node_modulesfolder, then rebuild the application.ShellCopynpm install -
7
Open the
androiddirectory in Android Studio. -
8
Add Android code and resources.
- Add files from the
android_codedirectory. Overwrite if required. - Overwrite the main
build.gradlefile with the one fromandroid_resources.
-
9
Modify the app project's
build.gradle(see thereferencedirectory for an example). Add the following dependency.GradleCopyimplementation 'com.idmission.sdk2:idmission-mediumsdk:11.1.07.2.23' -
10
Click Sync Now in Android Studio to sync the Gradle files.
-
11
Build and run the Android app.
ShellCopynpx react-native run-android --port=8081
Available Functions
The following functions are available after initializing the SDK.
Initializes the SDK. Must be called before any other function.
IDMissionSDK.initializeSDK(String apiBaseUrl, String authUrl, String debug, String accessToken)Initiates the ID Validation (Service ID 20) flow.
IDMissionSDK.serviceID20()Initiates the ID Validation and Match Face (Service ID 10) flow.
IDMissionSDK.serviceID10()Initiates the Identify Customer (Service ID 185) flow.
IDMissionSDK.serviceID185()Initiates the Live Face Check (Service ID 660) flow.
IDMissionSDK.serviceID660()Initiates the ID Validation and Customer Enroll (Service ID 50) flow.
IDMissionSDK.serviceID50(String uniqueCustomerNumber)Initiates the Customer Enroll Biometrics (Service ID 175) flow.
IDMissionSDK.serviceID175(String uniqueCustomerNumber)Initiates the Customer Verification (Service ID 105) flow.
IDMissionSDK.serviceID105(String uniqueCustomerNumber)Submits the form and finalizes the current service flow.
IDMissionSDK.submitResult()Report a docs issue
Copy this context into your team’s issue tracker or an email to support@idmission.com.
