Integrate Android SDK
This document will cover SDK installation and initialization steps for your Android application
Installation
Add the mavenCentral() repository to your build file.
Add Android SDK dependency inside app level build.gradle
Add following line of code inside dependencies in app build.gradle
Initialization
Initialising Suprsend Android SDK
To integrate SuprSend in your Android app, initialise the Suprsend android sdk in MainApplicaNtion inside onCreate
method and just above super.onCreate()
line.
Replace WORKSPACE KEY
and WORKSPACE SECRET
with your workspace values. You will get both the tokens from Suprsend API Keys page (Settings page -> "API keys"
section)
Import SuprSend SDK in your client side code
Logging
By default the logs of SuprSend SDK are disabled. We recommend you to enable the SDK logs by setting its value to VERBOSE. You can enable the logs just in debug mode while in development by below condition.
ProGuard Rules (For release build)
For creating a release build you will need to add these below pro-guard rules: