# Identance Android Integration

# Integration

# Integration via Maven

Android Maven Plugin v4.0.0 or newer is required.

Open your pom.xml file and add these directives as appropriate:



# Android studio integration

There are 2 ways to integrate the SDK

  1. Directly download the latest AAR, and insert it into the libs folder of the app module. Make sure you include libraries from the libs folder:
dependencies {
    implementation fileTree(include: ['*.aar'], dir: 'libs')
  1. Via Gradle
android {

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
maven { url 'http://maven.microblink.com' }
maven {
    url 'https://github.com/...'

dependencies {
    api 'com.IDENTANCE:sdk:1.4.10'

For better performance and user convenience, IDENTANCE connects to the user's Twitter profile. By default IDENTANCE uses its own credentials, but you could use your own. In this case you must override the credentials:

<string name="com.twitter.sdk.android.CONSUMER_KEY">ISvKGmUskCWdo0OC2998GE2sg</string>
<string name="com.twitter.sdk.android.CONSUMER_SECRET">2AIjUc5gTnP9h8C4zGdyKrXYHtkEjAA49LsQlkHbETBG1RkoiE</string>

More information about the integration of Twitter:

# Initialization of the verification client

Add the following code to your App class:

public class MyApplication extends SomeOtherApplication {
    public void onCreate() {
        VerificationClient client = new VerificationBuilder(this)
            .addTokenProvider(() -> "Java web token, should be provided by merchant")

Because the SDK keeps a reference of the TokenProvider, the Verification Client should be re-initialized immediately after a new user is logged in.

# Launching the verification process

In the place where you want to start the verification put:

VerificationClient.getInstance().start(activity, REQUEST_CODE);


VerificationClient.getInstance().start(fragment, REQUEST_CODE);

# Interrupting the verification process