-
Notifications
You must be signed in to change notification settings - Fork 96
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
Android: Notification not working when app killed from background and again open #153
Comments
Try doing the solution here #33 An update: Plugin.PushNotification 3.3.3 Manifest:
Application Class:
Initialisation is made on Application Class Open App: Close the app and open it again, notifications are received. This is a weird behaviour. |
I've managed to track down the bug, but need confirmation to the plugin owners. During debug the variable reset token invalidates the registration whenever you kill the app, so you have to open/close/open again for the notification works. Error in. azure when resetToken is true after closing the application:
This can be reproduced easily with a blank application along with azure hub notifications. So the fix is to set the reset token to false or create a configuration where you should apply the resetToken to true or false. |
It works like this:
The text was updated successfully, but these errors were encountered: