fix: disable notifiee handler on ios devices

This commit is contained in:
GleidsonDaniel 2024-03-19 08:47:24 -03:00
parent 2c36011a59
commit 1ff0aab8e9
1 changed files with 21 additions and 0 deletions

View File

@ -18,3 +18,24 @@
Notifee.REQUEST_CODE_NOTIFICATION_PERMISSION,
this);
}
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 cf8020d..3a1e080 100644
--- a/node_modules/@notifee/react-native/ios/NotifeeCore/NotifeeCore+UNUserNotificationCenter.m
+++ b/node_modules/@notifee/react-native/ios/NotifeeCore/NotifeeCore+UNUserNotificationCenter.m
@@ -179,11 +179,11 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center
_notificationOpenedAppID = notifeeNotification[@"id"];
- // handle notification outside of notifee
- if (notifeeNotification == nil) {
- notifeeNotification =
- [NotifeeCoreUtil parseUNNotificationRequest:response.notification.request];
- }
+ // disable notifee handler on ios devices
+ // if (notifeeNotification == nil) {
+ // notifeeNotification =
+ // [NotifeeCoreUtil parseUNNotificationRequest:response.notification.request];
+ // }
if (notifeeNotification != nil) {
if ([response.actionIdentifier isEqualToString:UNNotificationDismissActionIdentifier]) {