iOS notifications inconsistent performance when app is in quit state
See original GitHub issueWhat’s working I am currently following the iOS Remote Notification Support documentation, and currently have the following features working,
- Foreground notifications
- Background notifications
What’s not working However, Quit state notifications only seems to work when any of the following conditions is fulfilled,
- User quits app and goes straight to home screen, without opening any other apps. Opening any other apps will cause the user to not receive any quit state notifications
- User recently received a quit state notification. This enables user to receive additional quit state notifications even when user is in another app
Observations
When the quit state notifications work, i would see [BUNDLE] ./index.tsx
. After 10 seconds, the code begins to run and my notification is displayed.
When quit state notifications does not work, I will NOT see [BUNDLE] ./index.tsx
at all
Request for help I am seeking advice on any ideas on why this is happening. And hoping to find a fix where the user will be able to receive quit state notifications anytime, anywhere on their phone.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
iOS notifications inconsistent performance when app is in quit ...
User recently received a quit state notification. This enables user to receive additional quit state notifications even when user is in another app....
Read more >Technical Note TN2265: Troubleshooting Push Notifications
The device or computer may have lost its persistent connection to the push service and can't reconnect. Try quitting the app and relaunching...
Read more >Reset push notification settings for app - Stack Overflow
Go to Settings > General > Date & Time and set the date ahead a day or more. Turn the device off completely...
Read more >5 Ways to fix iOS 16/15/14/13/12 Notifications Not Working
Solution 1: Turn off Do Not Disturb If you are not getting notifications on iPhone, then first you should check if the "Do...
Read more >Notifications Not Shown - Mobile Push
Android App is Force Stopped ; MIUI 10, Settings > Battery & performance > Choose apps > Select the app that is not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Update: It seems that
notifee_options
is not activating at all, meaning that something went wrong along the way while I am following the steps.It seems that currently the
setBackgroundMessageHandler
is dealing with the background state and the quit state, and is not reliably receiving data-only notifications from the quit state. With my current implementation, it isdisplayNotification
that is being called. I am wondering how do getnotifee_options
to work properly such that I do not have to rely onsetBackgroundMessageHandler
anddisplayNotification
I am currently using the Python Firebase SDK, the documentation does not mention where I should put the
notifee_options
object. This is the code for the current implementation, which I suppose something is going wrong somewhereI’m currently facing the same issue, despite having the notification object in my payload. This is what my payload looks like (Python Firebase Admin SDK)
Notification is mapped to the correct channel in foreground, but it’s delivered as a regular notification in background, as if it doesn’t reach the NotifeeServiceExtension at all.