Sonde Health API Platform Documentation
Android SDK Initialization
Overview
The following document is a guide for your app development. The below steps will provide you with detailed information for the Initialization of the Passive SDK.
Import the following classes into your Application class.
import sonde_passive.application_api.init.SondePassiveSdk
Initialise SDK in the
onCreate()
method of the Global Application class aftersuper.onCreate()
override fun onCreate() {
super.onCreate()
SondePassiveSdk.init(
context,
"<YOUR CLIENT ID>",
"<YOUR CLIENT SECRETE>",
object : SondePassiveSdk.SondeInitCallback {
override fun onError(error: Throwable) {
Log.d("sonde", "errorMessage - > $error")
}
override fun onSuccess(msg: String) {
Log.d("sonde", "onSuccess-> $msg")
}
}
)
}
Â
Â
Sonde Health