SDK Installation
Android Native
CTA Callback for Android
2min
cta configuration cooee sdk supports callback when users perform any action on in app notifications & push notifications by returning a map of key value pairs check for more call to action docid\ kj yz ltdt72n4aqtvvqr according to your industry implements the cooeectalistener somewhere in your global code (like application class) and override the following method public class homeactivity extends appcompatactivity implements cooeectalistener { @override public void onresponse(hashmap\<string, object> payload) { if (payload == null) { return; } if (payload get("actiontype") == "view item") { // use payload get("item") } else if (payload get("actiontype") == "go to screen") { // use payload get("screenname") } } }override fun onresponse(payload hashmap\<string, any>?) { if (payload == null) { return } if (payload\["actiontype"] == "view item") { // use payload\["item"] } else if (payload\["actiontype"] == "go to screen") { // use payload\["screenname"] } } and then set the interface instant to cooeesdk @override protected void oncreate(bundle savedinstancestate) { cooeesdk cooeesdk = cooeesdk getdefaultinstance(context); cooeesdk setctalistener(this); }override fun oncreate(savedinstancestate bundle?) { val cooeesdk = cooeesdk getdefaultinstance(context) cooeesdk ctalistener= this } handle application name if your application is not using android app application class to do anything, please remove the android\ name in the application tag from the androidmanifest xml (if there) otherwise, if it is used/needed, use our com letscooee init appcontroller class which already extends the android app application class