Integrate IDmission's IDentity SDK into your iOS React Native application.
Set up the React Native development environment based on your development and target OS.
Setting up the development environment →Download and unzip the React Native Resources archive. It contains the react-native, ios_code directories, and a Podfile.
Create an empty React Native application.
npx @react-native-community/cli init IDMTest
Add JavaScript code. Copy and paste the contents of the react-native folder into the main project folder. Overwrite files if required.
Add React Native dependencies. In package.json, update the dependencies node with the following.
"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"
},
Delete the node_modules folder, then rebuild the application.
npm install
Set up pods. Navigate to the ios directory and uninstall the existing pods.
pod deintegrate
Delete Podfile.lock and IDMTest.xcworkspace. Replace the Podfile with the one from the ReactNativeSDK2iOSResources archive, then install pods.
pod install
Add iOS code. Review the permissions in the Info.plist file from ios_code and add any missing permissions to your project's Info.plist.
Launch IDMTest.xcworkspace in Xcode.
In the ios_code folder, rename YourProjectName-Bridging-Header.h to match your project name. Then drag and drop all files from ios_code into IDMTest in Xcode. In the popup, select Copy items if needed, Create groups, and the IDMTest target. When prompted, select Create Bridging Header.
Navigate to Product → Scheme → Edit Scheme. Select the Run Action. Under the Info tab, set Build Configuration to Release. Uncheck the Debug Executable checkbox.
Configure code signing. Select the target, then go to Signing & Capabilities. Add your Team and Provisioning Profile.
Build and run the application from Xcode.
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()