Before integrating the SDK, ensure your development environment meets the following requirements:
368.14.3Kotlin version : 2.x+
Our SDK will automatically request the permissions that it needs. If your application explicitly removes permissions, please ensure that CAMERA and RECORD_AUDIO are not removed.
Our SDK automatically requests and uses FOREGROUND_SERVICE_DATA_SYNC. You must declare the foreground service information within the Play Console (it is located under Policy -> App Content -> Foreground Service Permissions). Please follow the instructions outlined by Google Play here to ensure your application is compliant. These steps are:
To initialize the SDK, create a subclass of the Application class, and add the following code to your onCreate() method:
You will need to pass in an instance of IDMeSDKConfig while initializing the SDK. This example demonstrates how to create this config:
The tokenProvider in the example is responsible for generating the client access token. This token enables the SDK to make REST API requests to ID.me’s backend APIs. The application must obtain a client access token from ID.me and provide a function to generate a new token if the current one expires. The SDK will then automatically use this to make REST API requests. This example illustrates the signature of this token provider method:
This section provides examples of common tasks you can perform with our Mobile SDK.
This section details the process of legal document and face liveness verification utilizing our Mobile SDK. Initiating a verification is straightforward, as demonstrated by the code snippets below.
Once the verification is complete, you will receive a result, which contains the following fields:
This section describes how to obtain the status of an ongoing verification.
This section details how to customize the user interface. While default values are based on ID.me’s design system, you have the flexibility to replace any or all of these to align with your application’s aesthetic. We provide customization options for the following elements:
If you encounter any issues or have questions, please contact our developer support team. You can reach us at mobile-sdk-issues@id.me.