Cordova Push

Push Callbacks

Netmera has following push callbacks:

  • Push Register

  • Push Receive

  • Push Click

  • Push Button Click

import { NetmeraPlugin } from '@ionic-native/NetmeraPlugin/ngx';

constructor(private netmera: NetmeraPlugin) {}
...

this.netmera.requestPushNotificationAuthorization()

this.netmera.subscribePushNotification().subscribe(pushObject => {
console.log("Notification Payload")
});

this.netmera.subscribePushClick().subscribe(pushObject => {
console.log("Notification Payload")
});

this.netmera.subscribePushButtonClick().subscribe(pushObject => {
console.log("Notification Payload")
});

Netmera Push Object

export interface NetmeraPush {
  title: string;
  subtitle: string;
  body: string;
  pushId: string;
  pushInstanceId: string;
  pushType: number;
  inboxStatus: number;
  sendDate: any;
  deeplinkUrl: string;
}

Last updated