Skip to content

Commit

Permalink
docs(messaging, ios): document 8 second delay introduced in #4144 fix (
Browse files Browse the repository at this point in the history
…#5545)

Co-authored-by: Brian Meek <brian@slashtalk.com>
  • Loading branch information
brianathere and brianathere authored Jul 26, 2021
1 parent 832057c commit 0259802
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/messaging/usage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ The device state and message contents determines which handler will be called:
as low priority and will ignore it (i.e. no event will be sent). You can however increase the priority by setting the `priority` to `high` (Android) and
`content-available` to `true` (iOS) properties on the payload.

- On iOS in cases where the message is data-only and the device is in the background or quit, the message will be delayed 8 seconds
from the time it arrives on the device until the background message handler registered with setBackgroundMessageHandler is invoked
to allow for the applications javascript to be loaded and ready to run [Issue 4144]
(https://github.com/invertase/react-native-firebase/pull/4144).

To learn more about how to send these options in your message payload, view the Firebase documentation for your [FCM API implementation](https://firebase.google.com/docs/cloud-messaging/concept-options).

### Notifications
Expand Down

1 comment on commit 0259802

@vercel
Copy link

@vercel vercel bot commented on 0259802 Jul 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.