SDK Installation
iOS Native
CTA Callback in iOS
2min
cta configuration cooee sdk supports callback when users perform any action on in app notifications & push notifications by returning a dictionary 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 @interface viewcontroller () \<cooeectadelegate> @end @implementation viewcontroller \ (void)onctaresponsewithpayload (nsdictionary\<nsstring ,id> nonnull)payload { if (payload count == 0) { return; } if (payload\[@"actiontype"] isequal @"view item") { // use payload\[@"item"] } else if (payload\[@"actiontype"] isequal @"go to screen") { // use payload\[@"screenname"] } } @end\@interface viewcontroller () \<cooeectadelegate> @end @implementation viewcontroller \ (void)onctaresponsewithpayload (nsdictionary\<nsstring ,id> )payload { if (payload count == 0) { return; } if (payload\[@"actiontype"] isequal @"view item") { // use payload\[@"item"] } else if (payload\[@"actiontype"] isequal @"go to screen") { // use payload\[@"screenname"] } } @end and then set the delegate instant to cooeesdk @implementation viewcontroller \ (void)viewdidload { \[super viewdidload]; cooeesdk cooeesdk = \[cooeesdk getinstance]; \[cooeesdk setonctadelegate\ self]; } @endclass viewcontroller uiviewcontroller, cooeectadelegate { override func viewdidload() { super viewdidload() let cooeesdk = cooeesdk getinstance() cooeesdk setonctadelegate(self) } }