Integration
Using gradle.
SDK initialization
Implement the SDKManagerInterface
class YourClass : Fragment(), SDKManagerInterface
override fun authenticate(resp: Boolean) {
// This method returns true if sdk is authenticated
}
Declare the SDKManager as soon as possible
public lateinit var sdkManager: SDKManager
Initialize the SDK as soon as possible on your App life cycle
activity?.let {
this.sdkManager = SDKManager(this, it)
this.sdkManager.authenticate(
appID = "###APP_ID###",
clientID = "###CLIENT_ID###",
clientSecret = "###CLIENT_SECRET###"
}
On the Viewcontroller you wish to call the proactive feedback prompt, first configure your stage.
The STAGE NAME must match the on you have created on the Appinion Dashboard.
Launch the Proactive feedback prompt with the configuration for this stage.
activity?.let {
this.sdkManager.storeFeedbackConfiguration(###STAGE_NAME###)
}