Hi everyone!
There are anyway to fire event when i receive a notification??
My code is something like this:
$ionicPlatform.ready(function() {
$ionicPush.init({
“debug”: true,
“onNotification”: function(notification) {
var payload = notification.payload;
console.log(notification, payload);
},
“onRegister”: function(data) {
console.log(data.token);
}
});
$ionicPush.register();
});
and i need to find some way to make something just after notification is received.
Actually im only capable to catch the click with the “onNotification” method…
Some help?? Thank you