Requirements
- Android 7.0 (API level 24) or higher
Installation
Repository Setup
Add the Verisoul repository to your project’ssettings.gradle
file:
Add Dependency
Add the Verisoul SDK dependency to your app’sbuild.gradle
file:
For Groovy DSL
For Kotlin DSL
libs.versions.toml
file:
Under the [versions]
section:
[libraries]
section:
Google Play Data Safety
See here for guidance on how to disclose Verisoul when submitting to the Google Play Store.Initialization
Initialize the Verisoul SDK in your Application class:AndroidManifest.xml
:
Usage
Getting the Session ID
Once the minimum amount of data is gathered, the session ID becomes available. The session ID is needed to request a risk assessment from Verisoul’s API. Note that session IDs are short-lived and will expire after 24 hours.Providing Touch Events
To gather touch events and compare them to device accelerometer sensor data, you need to provide touch events to Verisoul. Create aBaseActivity
class, override the dispatchTouchEvent
function, and pass the data to Verisoul:
BaseActivity
as the base class for your activities:
Next Steps
- Learn about Backend Integration for API implementation
- See Integration Best Practices
- Explore iOS Integration for Apple devices
- See the Android Sample App for a complete implementation