Android-SDK-Integration Documentation(React Native version)

Demo

Install CV-Demo.apk to your phone and log in with the test account.

Integrate the plugin into your project

  1. Open/your-project-name/android/build.gradleadd this maven repository:

  2. Open /your-project-name/android/app/build.gradleadd SDK dependencies:

Quick Start

  1. Add GlobalIQAReactPackage

    • In the android/app directory, find the class that implements ReactApplication with the default name MainApplication, add GlobalIQAReactPackage

  2. Initialization SDK

  3. Check License

    The license is obtained by your server calling our openAPI, you need to check license before starting the activity.

  4. User binding (strongly recommended).

    You can use this method to pass your user unique identifier to us, we will establish a mapping relationship based on the identifier。It is helpful for us to check the log when encountering problems.

  5. Start the detection page and obtain the check result.

    Each time the detection is successful, a unique IDVID and a clear photo will be returned.

    • We provide two ways to get images and detection results, you can get them directly through the SDK or you can request the results via IDVID.

      })

    With extras you can customize UI elements, here's an example

A success result sample of [Global Document Verification]

A success result sample of [Global Image Quality Check]

  1. Multilingual

    SDK supports three languages, English, Indonesian and Chinese, switching automatically with the cellphone system language.

    • If the SDK does not automatically switch with the system language, please check your cellphone language settings and make sure that both [Region] and [Language] are switched to the corresponding language.

    • If it still have problems with multiple languages and the app only supports one language, you can filter out the unwanted languages by adding the following configuration to build.gradle

  2. Runtime Permissions

    This SDK requires the following permissions, which have been configured in the aar manifest file and the SDK itself is ready for dynamic application of Android 6.0+ permissions.

  3. Code proguard configuration

    The SDK already has code proguard, no additional configuration is required.

  4. SDK Compatibility

    • Minimum Android version:4.1+ (API Level:16)
    • Compilation Android SDK version:API Level:32
    • Additional dependent third-party libraries: None
    • Supported CPU architectures:armeabi-v7a,arm64-v8a,x86,x86_64,armeabi
    • SDK package size: 0.9MB model file + about 0.7MB per CPU architecture