Android Integration
This document will cover integration steps for Android side of your ReactNative application.
Installation
Install Package
Add the below dependency
Add the this dependency in project level build.gradle, inside allprojects > repositories.
Add Android SDK dependency inside in app level build.gradle.
Note:
If you get any error regarding minSdkVersion please update it to 19 or more.
Initialization
Initialise the Suprsend Android SDK
Initialise the Suprsend android SDK in MainApplication.java inside onCreate
method and just above super.onCreate()
line.
Replace WORKSPACE KEY
and WORKSPACE SECRET
with your workspace values. You will get them the tokens from Settings -> API keys inside Suprsend dashboard.
Import SuprSend SDK in your client side Javascript code.
Logging
By default the logs of SuprSend SDK are disabled. You can enable the logs just in debug mode while in development by the below condition.