-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Read gcm data when notification arrived in background/coldstart on Android #2
Comments
view this project https://github.com/infobip/mobile-messaging-cordova-plugin/ in this is available functions to read in background arrived, for get some ideas |
Any news on this issue? |
First of all, thank you for all the work done, it's a great plugin. |
I thought this was a show stopper, but after further research it was not. This seems to be by design by android. When the app is in the background and the notification is tapped on, the action intent is triggered instead of the onMessageReceived event. The data portion of the payload is preserved but not the notification part. For my purposes all I needed was the data portion in my app. Also if you exclude the notification section, it will not show a notification but will trigger the onMessageReceived while your app is in the background or foreground. { |
I have a similar issue, further explained here |
Use this function to receive payload and get data in mobile device, write this function in ondeviceready function in index.js file. |
No description provided.
The text was updated successfully, but these errors were encountered: