Learn how to use our client side Android SDK.
so.prelude.android:android-sdk
) and the code accessible in GitHub at https://github.com/prelude-so/android-sdk .
dispatchSignals
function will capture the device signals and report them to Prelude. It will return a dispatchId
string that you should report back to your back-end to enhance the phone number verification process.
As context it is recommended to pass the application context but you can pass any Android context and the library will resolve the correct one.
There is no restriction on when to call this API but it is recommended to perform it early in the onboarding process. The recommended way of integrating it is to call the dispatchSignals
function before displaying the phone number verification screen in your application. This way you can ensure that the device signals are captured and the dispatchId
can be sent to your back-end with the phone number. Your back-end will then perform the verification call to Prelude with the phone number and the dispatch identifier.
This way you can continue the onboarding only when you are sure the signal dispatching is successful.
isMinifyEnabled = true
somewhere in your build.gradle
file), please add the following lines to your Proguard configuration file to avoid runtime issues: