-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
App in background: Notification is received but app is closed on clicking notification tray #31
Comments
Working fine in below scenarios: Not working when App is in background and push notification arrives. |
please provide some code. For me its working fine: |
format of payload {"to":"fvfEay1N-ss:APA91bFx1UTmDwGgpa0Oic63O48_PhMN7xi8h1E9FAy353T4wm-v4VKvyablAtVqlj1kEWcsmfp6qy-1cbDa7pXIIQi2Blc-P7dQhHPb71ciieLvneYTMZRvKXB7S1xPqPV8GqzFkepz","notification":{"title":"Working Good","body":"[add your message]"} "data":{ "type":"req"},"priority":"high"} |
try removing the 2nd and use |
Removed fcm.addEventListener('didReceiveMessage', function (e) {...} |
btw: what is not working? You've just said |
When the app is in the background I received a push notification but the app crashed when I click on notification tray (app not opening) |
so anything in the log when it crashes? |
10-26 12:02:07.371: W/FirebaseMessaging(6104): Error while parsing timestamp in GCM event |
Who is facing background notification issue please use below module firebase.cloudmessaging-android-1.5.0.zip |
What did you change? Anything that can be included in the public module? |
Yes, I have changed the native code in a module for notification channel. |
Hey hello @apurvaAndroid . This module version (https://github.com/hansemannn/titanium-firebase-cloud-messaging/files/2534820/firebase.cloudmessaging-android-1.5.0.zip) in my case it is working sending push notifications through onesignal, the other version of the module like (Android 1.4.0) is not working at all - but ned to know whether you found something tho get the data when the app is closed, and the push notification arrives. I mean to get the information of the payload when we click on the push notification from the notification tray. I appreciate any information. Thank you. |
@antonioduran no I have not found payload on clicking of notification tray. |
Even I'm getting the same error when I'm trying to log the contents of the message. When, I close the app, the message shows up in the notification tray but the error "Unable to log event: analytics library is missing" is displayed in the logcat. How do I fix it? |
No description provided.
The text was updated successfully, but these errors were encountered: