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
Data Integration
Call to Action

Educational Apps

6min

View Item

When the user needs to be taken to a particular screen/tab of the app.

Properties

Key

Value

Description

actionType

VIEW_ITEM

Type of action to be performed.

item

Item

the object of the item which holds itemID, Name. It is similar to an item sent via View Item event or via CMS

Code Example

JS
TS
Java
Kotlin
ObjectiveC
Swift
Dart
function onCooeeCTAListener(payload) {
    if (!payload) {
        return;
    }

    if (payload.get("actionType") == "VIEW_ITEM") {
        const item =  payload.get("item");
        // Show given item to the user
    }
}


Play Item

When a particular course needs to be played. Users should be first taken to the view page of the course (if available). The app should handle edge cases. For example-

  1. The user is allowed to view the course.
  2. Wrong course id.

Properties

Key

Value

Description

actionType

PLAY_ITEM

Type of action to be performed.

item

Item

the object of the item which holds itemID, Name. It is similar to an item sent via View Item event or via CMS

Code Example

JS
TS
Java
Kotlin
ObjectiveC
Swift
Dart
function onCooeeCTAListener(payload) {
    if (!payload) {
        return;
    }

    if (payload.get("actionType") == "PLAY_ITEM") {
        const item =  payload.get("item");
        // Play given item to the user
    }
}




Updated 03 Mar 2023
Did this page help you?
PREVIOUS
General Apps
NEXT
Retail/Ecommerce Apps
Docs powered by Archbee
TABLE OF CONTENTS
View Item
Properties
Code Example
Play Item
Properties
Code Example
Docs powered by Archbee