Skip to main content

Installation

1

Add the mavenCentral() repository to your build file.

2

Add Android SDK dependency inside app level build.gradle

Add following line of code inside dependencies in app build.gradle

Initialization

1

Initialising Suprsend Android SDK

To integrate SuprSend in your Android app, initialise the Suprsend android sdk in MainApplication 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)
2

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: