From 1318eafb1215c2e40e1b8ea3be3efbd7ea8472ea Mon Sep 17 00:00:00 2001 From: RRigueira24 <93120715+RRigueira24@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:09:01 +0000 Subject: [PATCH] docs(messaging): added note about notifee v7 notification event handling (#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 --- .spellcheck.dict.txt | 1 + docs/faqs-and-tips.md | 2 ++ docs/messaging/usage/index.md | 2 ++ 3 files changed, 5 insertions(+) diff --git a/.spellcheck.dict.txt b/.spellcheck.dict.txt index ea75a5027e..6f7ca9ffe7 100644 --- a/.spellcheck.dict.txt +++ b/.spellcheck.dict.txt @@ -121,6 +121,7 @@ Node.js non-firebase NoSQL Notifee +notifee NPE NPM OAuth diff --git a/docs/faqs-and-tips.md b/docs/faqs-and-tips.md index 15efba55cc..2a059b57f1 100644 --- a/docs/faqs-and-tips.md +++ b/docs/faqs-and-tips.md @@ -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: diff --git a/docs/messaging/usage/index.md b/docs/messaging/usage/index.md index fb4f68832c..a994b01902 100644 --- a/docs/messaging/usage/index.md +++ b/docs/messaging/usage/index.md @@ -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.