Hi guys!!
I succeded to register to Push Notificaion Service and to Receive the notifications.
Now I’ve this problem (the bold one):
-
if the app is opened and a notification arrived → my notification callback is called as expected
-
if the app is in background and a notification arrived and I click on the notification → my notification callback is called as expected
-
if the app is in background and a notification arrived, if I don’t do nothing, my callback is never called. Than I’m not able, for example, to update the Icon Application badge number
Ionic.io();
var push = new Ionic.Push({
onNotification: function (notification) {
incrementBadge(notification);
}
});