Android Flutter Wrapper
Android Flutter Wrapper
Integrate IDmission's IDentity SDK into your Android Flutter application.
Setup
-
1
Set up the Flutter development environment based on your development and target OS by following the official Flutter guide.
Setting up the development environment → -
2
Verify that all Flutter dependencies are installed correctly.
Shell Copyflutter doctor -
3
Download and unzip the resources archive. It contains the
Download FlutterSDK2AndroidResources →android_java_code,android_build_gradle, andflutter_dart_codedirectories. -
4
Run the following commands in your working directory to create the plugin template.
Shell Copyflutter create --template=plugin --org com.idmission.newsdkflutter --platforms=android,ios -a java -i swift flutter_plugin_identity_sdk cd flutter_plugin_identity_sdk cd example flutter pub upgrade dart migrate --apply-changes -
5
Connect an Android device and run the application to verify the base template works.
Shell Copyflutter run -
6
Add SDK files from the downloaded archive.
-
Android Java code: Copy the contents of
android_java_codetoandroid/src/main/java/com/idmission/newsdkflutter/flutter_plugin_identity_sdk. Overwrite files if required. -
Android build gradle: Copy the contents of
android_build_gradleto theandroidfolder. Overwrite if required. -
Flutter Dart code: From
flutter_dart_code, copyflutter_plugin_identity_sdk.dartto thelibfolder, andmain.darttoexample/lib. Overwrite if required.
-
-
7
Modify the Android plugin project. Open the
androidfolder. InAndroidManifest.xml, add the following inside the<manifest>node.XML Copy<application> <activity android:name="com.idmission.newsdkflutter.flutter_plugin_identity_sdk.CallPluginActivity"/> </application> -
8
Modify the Android app project. Open the
example/androidfolder and apply the following changes.app/build.gradle
Update the SDK versions in
defaultConfig.Gradle CopyminSdkVersion 26 targetSdkVersion 36src/main/AndroidManifest.xml
Add the tools namespace to the
<manifest>node.XML Copyxmlns:tools="http://schemas.android.com/tools"Add the following theme to the
<application>node.XML Copyandroid:theme="@style/Theme.MaterialComponents.Light.NoActionBar"Add the following theme to the
<activity>node.XML Copyandroid:theme="@style/Theme.MaterialComponents.DayNight.NoActionBar" -
9
Open the Android app project in Android Studio by opening
example/android. -
10
Build and run the code on an Android device.
Shell Copyflutter build apk --target-platform android-arm64 --split-per-abi --release
Available Functions
The following functions are available after initializing the SDK.
Initializes the SDK. Must be called before any other function.
idm_sdk_init(String apiBaseUrl, String debug, String accessToken)
Initiates the ID Validation (Service ID 20) flow.
idm_sdk_serviceID20()
Initiates the ID Validation and Match Face (Service ID 10) flow.
idm_sdk_serviceID10()
Initiates the Identify Customer (Service ID 185) flow.
idm_sdk_serviceID185()
Initiates the Live Face Check (Service ID 660) flow.
idm_sdk_serviceID660()
Initiates the ID Validation and Customer Enroll (Service ID 50) flow.
idm_sdk_serviceID50(int uniqueCustomerNumber)
Initiates the Customer Enroll Biometrics (Service ID 175) flow.
idm_sdk_serviceID175(int uniqueCustomerNumber)
Initiates the Customer Verification (Service ID 105) flow.
idm_sdk_serviceID105(int uniqueCustomerNumber)
Submits the form and finalizes the current service flow.
submit_result()
Report a docs issue
Copy this context into your team’s issue tracker or an email to support@idmission.com.
