Skip to content

Data messages delayed until the app is brought to the foreground #6391

Answered by anhnch
anhnch asked this question in Q&A
Discussion options

You must be logged in to vote

I found the reason why! It's not the iOS, it's not firebase, it's not the device

We must go to iOS settings > General > Background App Refresh and set it to ON

The message did come, but if the app is not allowed to refresh itself at the background, the listener is not triggered. The message is delayed until it comes to the foreground.

This took me 3 days scratching head crazily. Now when I search with the keyword "firebase messaging background app refresh" I found https://rnfirebase.io/messaging/usage#ios-background-limitation it states very clearly. When I said "one day, it doesn't work anymore". It's because the iPhone must have gone to the Low Power Mode, the Background App Refresh is…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@mikehardy
Comment options

@mikehardy
Comment options

@anhnch
Comment options

@mikehardy
Comment options

@anhnch
Comment options

Answer selected by anhnch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants