@boyfunky wrote:
i want to catch the onNotification event when the push notification is sent from my backend and reset the badge number and also set the state payload tht the page should go to when d notification is clicked on. Nothing happens on my current onNotification event which is like this
var push = new Ionic.Push({
"onNotification": function(notification) {
console.log("on notification or smthg")
alert('Received push notification!');
}
})
Posts: 1
Participants: 1