Hi,
I am trying to create push notification for an app.
After receiving first notification on the android device the second notification overwrites the first instead of stacking on top of it. Following is my code
const options: PushOptions = {
android: {
senderID: “XXXXXXXXX”,
sound: true,
vibrate: true
},
ios: {
alert: “true”,
badge: false,
sound: “true”
},
windows: {}
};
const pushObject: PushObject = this.push.init(options);
pushObject.on('notification').subscribe((data: any) => {
if (data.additionalData.foreground) {
} else {
}
});
pushObject.on('error').subscribe(error => console.error('Error with Push plugin', error));