Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"notificationReceived" doesn't work after the first time #15

Open
mikkysati opened this issue Apr 10, 2015 · 0 comments
Open

"notificationReceived" doesn't work after the first time #15

mikkysati opened this issue Apr 10, 2015 · 0 comments

Comments

@mikkysati
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant