Getting Started
This guide walks through integrating the VIDA Liveness SDK into your Android application — adding the repository and SDK dependency, configuring your activation key, and setting up the liveness request. If your account uses ID Fraud Shield, the additional steps are called out along the way.
1. Add the VIDA Repository
In your project's build.gradle file, add the following to include Vida's repository and credentials. Replace REPO-API-KEY with the Repo API Key provided by VIDA.
2. Add the SDK Dependency
In your app's build.gradle file, add the SDK dependency for your environment. Add the ID Fraud Shield dependency only if ID Fraud Shield is enabled for your account. Replace
X.Y.Z with the SDK version you are using.
Production Environment
Sandbox Environment
Permissions
In your app's AndroidManifest.xml file, add the following permissions
What each permissions is for
The reference below shows the permissions each library declares, so you're aware of what your app will request. Permissions marked All ship with the Liveness SDK, those marked ID Fraud Shield ship with the ID Fraud Shield SDK and only apply when that library is included.
CAMERA
Capture the user's face for liveness detection
All
INTERNET
Communicate with VIDA servers
All
ACCESS_NETWORK_STATE
Check network connectivity before a request
All
ACCESS_WIFI_STATE
Read Wi-Fi connection details
All
ACCESS_COARSE_LOCATION
Approximate location as a fraud-risk signal
ID Fraud Shield
ACCESS_FINE_LOCATION
Precise location as a fraud-risk signal
ID Fraud Shield
USE_BIOMETRIC
Device biometric verification
ID Fraud Shield
USE_FINGERPRINT
Fingerprint verification on older devices
ID Fraud Shield
READ_GSERVICES
Read Google Services device identifiers for device fingerprinting
ID Fraud Shield
3. Add SDK Activation Key
In your application's AndroidManifest.xml file, add the SDK activation key. Replace VIDA-ACTIVATION_KEY with the activation key provided by Vida.
4. Configure the liveness request
The VIDALivenessRequest object defines the configuration for the liveness flow.
apiKey
String
Required
API key provided by VIDA.
licenseKey
String
Required
License key provided by VIDA.
eKYCID
String
Optional
ID for the user's eKYC for which the liveness is to be done.
userId
String
Optional (if ID Fraud Shield Enabled)
UserId to be tracked in idFraudShield. If you do not provide one, the SDK uses a default value. Recommended when idFraudShield is enabled for the flow, so fraud rules can be applied per user.
Last updated
