iOS Silent notifications not showing when the app is killed #4747
-
Hi, We implemented the notification with react native firebase and notifee, work well on android ( foreground , background, killed) but for iOS it works well for foreground and background but we didn't manage to make it work on the killed part. We use silent notification to be able to change it with notifee to add attachement and action buttons. I can see on my device log that i have an incoming notification but it's like it doesn't go trigger the app and the I got also in the logs this line We tried with Does someone have encounter this issue and find any solution ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This is very common. If you look at issues and discussions here (please do) you will notice tens maybe hundreds have encountered the issue, and it's been discussed a lot. TL;DR: iOS background data-only notifications are unreliable for a variety of reasons. -FIRDebugEnabled and watching log on real device will show them discarding sometimes, do that. If it's delivered but the app doesn't fire, iOS just chose not to fire up the app. Nothing you can do. Even more specifically if the user has swiped the app away (decisively killing it), iOS believes the user. The user said "don't run this app", so iOS won't. |
Beta Was this translation helpful? Give feedback.
-
Well our issue isn't 'random' it is systematically not working... Plus it does work with other libraries. |
Beta Was this translation helpful? Give feedback.
This is very common. If you look at issues and discussions here (please do) you will notice tens maybe hundreds have encountered the issue, and it's been discussed a lot.
TL;DR: iOS background data-only notifications are unreliable for a variety of reasons. -FIRDebugEnabled and watching log on real device will show them discarding sometimes, do that. If it's delivered but the app doesn't fire, iOS just chose not to fire up the app. Nothing you can do.
Even more specifically if the user has swiped the app away (decisively killing it), iOS believes the user. The user said "don't run this app", so iOS won't.