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")
});
export interface NetmeraPush {
title: string;
subtitle: string;
body: string;
pushId: string;
pushInstanceId: string;
pushType: number;
inboxStatus: number;
sendDate: any;
deeplinkUrl: string;
}