Hi
Push notifications are working in foreground but not in the background.
Actually push receives but in the notification area it doesn't show.
Please let me know what could be the issue.
Thanks
+1
@gopaldevra same happening for me too. tried everything. have you found a solution yet?
+10086
Fuck Firebase,
Fuck Google.
Sorry for the delay on a response. I am not sure I understand the "push receives but in the notification area it doesn't show".
"data" type messages are sent to the device - are you sending a message with a "notification" key? That should be sent via APNs and appear as a regular device notification.
Any details you have of the type of message that works or doesn't would be helpful.
I'm experiencing something similar (I think), in that I get pushes in the foreground but nothing in the background, for apps that I update from a previous version (that is, a version using GCM) to the new one (using FCM). Nothing comes when the app is backgrounded, ever. BUT when I uninstall the app completely, then reinstall it with the FCM-enabled version of my app, it works just fine - foreground and background push notes come in fine.
So it's like it's working for new apps, but not for app upgrades, which is painful... Any clues?
I've tried with messages using "data", "notification", and both "data" + "notification" elements. It just doesn't seem to be going through the APNs - and I've also tried manually setting the FIRInstance APNS token despite swizzling enabled. Nothing.
edit: update - that's actually only for iOS9 it seems. I just tried with an iOS10.1 device and it's responding fine in the background so far.
I noticed that exact thing that @MeteC described, worked only after a fresh install. Though single device push notifications worked correctly in either case. This happened to me on iOS 10 too.
@gopaldevra have you tried setting the notification priority to HIGH?
I am facing same issue in ios9
we are sending the both Data & Notification payload with "Content-available = true" flag and Priortity : High . i am also facing the similar kind of issue . i receive the payload fine when the app is running in foreground. but as soon as app goes to background i am not receiving anything.
Am i doing anything wrong ?
Hey all,
Normally FCM data messages will be sent directly through FCM (bypassing APNs) while the app is foregrounded. If you're running into this issue, double check your APNs setup first. You can test your APNs setup first by sending notifications directly through APNs.
If you're still having trouble, file a new issue with your code and the steps you took to set up FCM.
Most helpful comment
Fuck Firebase,
Fuck Google.