From 1ff0aab8e9f759840ad6b7f95cc31eb8ef20a86a Mon Sep 17 00:00:00 2001 From: GleidsonDaniel Date: Tue, 19 Mar 2024 08:47:24 -0300 Subject: [PATCH] fix: disable notifiee handler on ios devices --- patches/@notifee+react-native+7.8.0.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/patches/@notifee+react-native+7.8.0.patch b/patches/@notifee+react-native+7.8.0.patch index 04bfbe16c..cdb17b785 100644 --- a/patches/@notifee+react-native+7.8.0.patch +++ b/patches/@notifee+react-native+7.8.0.patch @@ -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]) {