SDK Installation
Angular 2+
CTA Callback
1min
cta configuration cooee sdk supports callback on any action of in app notifications actions by returning a map of key value pairs (i e objects in javascript) you can check more cta options on call to action docid\ kj yz ltdt72n4aqtvvqr page to handle callbacks, modify your global code i e app component ts import {component, oninit} from '@angular/core'; import {cooeeservice} from ' /services/cooee service'; @component({ selector 'app root', templateurl ' /app component html', styleurls \[' /app component scss'], }) export class appcomponent implements oninit { constructor(private readonly cooeeservice cooeeservice) { this cooeeservice init(); } ngoninit() void { // add this this cooeeservice oncta() subscribe((payload record\<string, any>) => { if (!payload) return; if (payload actiontype === 'view item') { // take the user to the given item's page item id will be in "payload id" } else if (payload actiontype == 'go to screen') { // take user to the given screen name } }); } }