Skip to content

Commit

Permalink
docs(messaging): added note about notifee v7 notification event handl…
Browse files Browse the repository at this point in the history
…ing (#7411)

* docs: added note about notifee v7 notification event handling
* lint(spellcheck): add `notifee` to dictionary
* lint(spellcheck): method names in backticks to avoid spellcheck on them

---------

Co-authored-by: Mike Hardy <[email protected]>
  • Loading branch information
RRigueira24 and mikehardy authored Nov 27, 2023
1 parent ff345a8 commit 1318eaf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .spellcheck.dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ Node.js
non-firebase
NoSQL
Notifee
notifee
NPE
NPM
OAuth
Expand Down
2 changes: 2 additions & 0 deletions docs/faqs-and-tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ Sometimes, after step 3, you have to click inside a "Text color" field, but this

### On iOS, when the app is in quit state, the setBackgroundMessageHandler is never invoked even when I receive the notification. How can I fix this?

> Note: If you use @notifee/react-native, since v7.0.0, `onNotificationOpenedApp` and `getInitialNotification` will no longer trigger as notifee will handle the event.
When the app is closed/quit, this can happen even when you are getting notifications and even when you are able to invoke the app in a headless state.

To fix this:
Expand Down
2 changes: 2 additions & 0 deletions docs/messaging/usage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ or update the in-app UI to signal a new notification.

### Background & Quit state messages

> Note: If you use @notifee/react-native, since v7.0.0, `onNotificationOpenedApp` and `getInitialNotification` will no longer trigger as notifee will handle the event.
When the application is in a background or quit state, the `onMessage` handler will not be called when receiving messages.
Instead, you need to setup a background callback handler via the `setBackgroundMessageHandler` method.

Expand Down

1 comment on commit 1318eaf

@vercel
Copy link

@vercel vercel bot commented on 1318eaf Nov 27, 2023

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.