-
Notifications
You must be signed in to change notification settings - Fork 1.4k
chore: upgrade @notifee/react-native #6838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
diegolmello
wants to merge
5
commits into
develop
Choose a base branch
from
chore.notifee-new-arch
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
1c8bd43
upgrade notifee
diegolmello f6e9dea
Fix backhandler after call
diegolmello 63411c5
Fix accepting call from killed state
diegolmello 46d1e85
feat: Enhance notification handling for video conference events on iOS
diegolmello 4638dcc
chore: format code and fix lint issues [skip ci]
diegolmello File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| diff --git a/node_modules/@notifee/react-native/ios/NotifeeCore/NotifeeCore+UNUserNotificationCenter.m b/node_modules/@notifee/react-native/ios/NotifeeCore/NotifeeCore+UNUserNotificationCenter.m | ||
| index beaa360..0ef1054 100644 | ||
| --- a/node_modules/@notifee/react-native/ios/NotifeeCore/NotifeeCore+UNUserNotificationCenter.m | ||
| +++ b/node_modules/@notifee/react-native/ios/NotifeeCore/NotifeeCore+UNUserNotificationCenter.m | ||
| @@ -180,17 +180,17 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center | ||
|
|
||
| _notificationOpenedAppID = notifeeNotification[@"id"]; | ||
|
|
||
| - // handle notification outside of notifee | ||
| - if (notifeeNotification == nil) { | ||
| - if (_originalDelegate != nil && originalUNCDelegateRespondsTo.didReceiveNotificationResponse) { | ||
| - [_originalDelegate userNotificationCenter:center | ||
| - didReceiveNotificationResponse:response | ||
| - withCompletionHandler:completionHandler]; | ||
| - } else { | ||
| - notifeeNotification = | ||
| - [NotifeeCoreUtil parseUNNotificationRequest:response.notification.request]; | ||
| - } | ||
| - } | ||
| + // // handle notification outside of notifee | ||
| + // if (notifeeNotification == nil) { | ||
| + // if (_originalDelegate != nil && originalUNCDelegateRespondsTo.didReceiveNotificationResponse) { | ||
| + // [_originalDelegate userNotificationCenter:center | ||
| + // didReceiveNotificationResponse:response | ||
| + // withCompletionHandler:completionHandler]; | ||
| + // } else { | ||
| + // notifeeNotification = | ||
| + // [NotifeeCoreUtil parseUNNotificationRequest:response.notification.request]; | ||
| + // } | ||
| + // } | ||
|
|
||
| if (notifeeNotification != nil) { | ||
| if ([response.actionIdentifier isEqualToString:UNNotificationDismissActionIdentifier]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3825,10 +3825,10 @@ | |
| "@nodelib/fs.scandir" "2.1.5" | ||
| fastq "^1.6.0" | ||
|
|
||
| "@notifee/react-native@7.8.2": | ||
| version "7.8.2" | ||
| resolved "https://registry.yarnpkg.com/@notifee/react-native/-/react-native-7.8.2.tgz#72d3199ae830b4128ddaef3c1c2f11604759c9c4" | ||
| integrity sha512-VG4IkWJIlOKqXwa3aExC3WFCVCGCC9BA55Ivg0SMRfEs+ruvYy/zlLANcrVGiPtgkUEryXDhA8SXx9+JcO8oLA== | ||
| "@notifee/react-native@^9.1.8": | ||
| version "9.1.8" | ||
| resolved "https://registry.yarnpkg.com/@notifee/react-native/-/react-native-9.1.8.tgz#3d55cb3fbcc21f9e35931e366afdf64b294da891" | ||
| integrity sha512-Az/dueoPerJsbbjRxu8a558wKY+gONUrfoy3Hs++5OqbeMsR0dYe6P+4oN6twrLFyzAhEA1tEoZRvQTFDRmvQg== | ||
|
|
||
| "@nozbe/[email protected]": | ||
| version "3.9.4" | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
@notifee/react-native v9 v8 breaking changes changelog release notes💡 Result:
Here are the main breaking / upgrade notes when moving from v8 → v9 of @notifee/react-native:
Sources:
If you want, I can copy the exact changelog entries for v9.x (v9.0.0 → latest) or produce a migration checklist tailored to your app (AndroidManifest, Gradle, RN version, Expo), which files to edit, and sample manifest snippets.
🏁 Script executed:
Repository: RocketChat/Rocket.Chat.ReactNative
Length of output: 1150
🏁 Script executed:
Repository: RocketChat/Rocket.Chat.ReactNative
Length of output: 658
🏁 Script executed:
Repository: RocketChat/Rocket.Chat.ReactNative
Length of output: 4616
🏁 Script executed:
Repository: RocketChat/Rocket.Chat.ReactNative
Length of output: 10422
🏁 Script executed:
Repository: RocketChat/Rocket.Chat.ReactNative
Length of output: 3828
Add FOREGROUND_SERVICE configuration to AndroidManifest.xml and verify manifest compatibility with v9 breaking changes.
This major version upgrade (7.8.2 → ^9.1.8) includes breaking changes requiring Android manifest updates:
foregroundServiceTypesattribute in AndroidManifest.xml. Your notification code usesongoing: true, which may trigger foreground service behavior. Add the required attribute to your service definition.While your build configuration is correct (compileSdkVersion = 35 meets the v9 requirement of 34+), the Android manifest has not been updated to reflect these breaking changes. This can cause runtime crashes on Android 12+ when foreground services are triggered.
Additionally, the caret range (^9.1.8) allows automatic minor and patch updates. Consider pinning to
"9.1.8"until manifest migration is fully tested.🤖 Prompt for AI Agents