website logo
HomeGo to Dashboard
User Guide
How-To Videos
Developers
Navigate through spaces
⌘K
Getting Started
Introduction
Compatibility
Terminology
SDK Installation
Shopify
Any Website
Dukaan
Angular 2+
WooCommerce
WordPress
Android Native
iOS Native
Flutter
Cordova
Ionic
React Native
Data Integration
Data Models
Mandatory Events
Mandatory Properties
Call to Action
System Events
Device Properties
Docs powered by archbee 

CTA Callback

2min

CTA Configuration

Cooee plugin supports callback when users perform any action on in-app notifications & push notifications by returning an object of key-value pairs. Check for more Call to Action for your industry type.

Implements the CooeeCTAListener somewhere in your global code and override the following method:

JS
TypeScript
|
document.addEventListener('onCooeeCTAListener', this.onCooeeCTAListener, false);

function onCooeeCTAListener(payload) {
    if (!payload) {
        return;
    }

    if (payload["actionType"] == "VIEW_ITEM") {
        // Use payload["item"]
    } else if (payload["actionType"] == "GO_TO_SCREEN") {
        // Use payload["screenName"]
    }
}




Updated 03 Mar 2023
Did this page help you?
Yes
No
PREVIOUS
Tracking Screens
NEXT
Ionic
Docs powered by archbee 
TABLE OF CONTENTS
CTA Configuration