Add Verification SDK into your application
You can quickly see how the Verification SDK works by trying the flashcall verification.
In this guide you will understand:
- What are the prerequisites to implement Android flashcall verification process.
- How to add Verification SDK into your app.
- Where to search for a complete working sample showcasing flashcall verification flow.
Prerequisites
Before you can get started, you need the following already set up:
- Sinch Customer Dashboard account.
- Android Studio and Android SDK tools available here.
- Clone the example code from our github samples
- One physical Android device with SIM card installed.
Step by Step flashcall sample
This guide uses Flashcall Step by Step application from our GitHub samples to showcase very basic and minimalistic use case of Sinch verification SDK. The sample itself contains minimal ammount of code needed to add and create a successfull verification flow. In particular this sample doesn't use any architecular design patterns and keeps application credentials publicly visible in Java files for clarity of implementation.
You can use this sample as a base to understand how the flashcall verification works or integrate the SDK into your already existing Android app. Note that in that case all the code snippets have to be adjusted to work with your app specific codebase.
Although the sample and SDK itself is written in Kotlin you can use it in Java source files as well.
Add Verification SDK library
Create a new Android Studio project using theEmpty activity
template. Open the build.gradle
file in your app
subfolder located in <project_location>/app
, and populate that file with the code found on this page.Note:
com.sinch.android.sdk.verification:verification-flashcall:x.x.x
artficact. See maven repository to check for other verification method specific dependencies or use verification-all
that combines all the available methods. Use the same link to verify what's the latest version of the verification Android SDK.Next steps
Now it's time to setup the application for the first verification request!
Additional resources
Learn more about the Verification API: