In the Ionic Push docs it states to use a similar snippet of code to this, which I have implemented in our mobile app:
this.push.rx.notification()
.subscribe((msg) => {
alert(msg.title + ': ' + msg.text);
});
The only difference being that instead of alert
I am using the Ionic toast to present it.
When a push notification is then pushed to the device running this code, it seems to infinitely present one toast after another. Anyone had this happen? Any thoughts why?