fix: disable notifiee handler on ios devices
This commit is contained in:
parent
2c36011a59
commit
1ff0aab8e9
|
@ -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]) {
|
||||
|
|
Loading…
Reference in New Issue