PushNotificationSample icon indicating copy to clipboard operation
PushNotificationSample copied to clipboard

"notificationReceived" doesn't work after the first time

Open mikkysati opened this issue 9 years ago • 0 comments

This app registers to GCM whenever user opens it, but this is not ideal as Registration ID will keep on changing after certain intervals. So, whenever the app is able to successfully store the Registration ID in the server, I am putting a variable in local storage to note it. After the successful restoration of registration ID, app won't register again. But the problem is that if I am not calling $cordovaPush.register every time, "$cordovaPush:notificationReceived" is not being called. The notification stays in status bar, if I touch it nothing happens and app is not able to add it to $scope.notifications.

mikkysati avatar Apr 10 '15 07:04 mikkysati