diff --git a/ios/NotifeeCore/NotifeeCore+UNUserNotificationCenter.m b/ios/NotifeeCore/NotifeeCore+UNUserNotificationCenter.m index cf8020d8..e4019b18 100644 --- a/ios/NotifeeCore/NotifeeCore+UNUserNotificationCenter.m +++ b/ios/NotifeeCore/NotifeeCore+UNUserNotificationCenter.m @@ -181,8 +181,13 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center // handle notification outside of notifee if (notifeeNotification == nil) { - notifeeNotification = - [NotifeeCoreUtil parseUNNotificationRequest:response.notification.request]; + if (_originalDelegate != nil && originalUNCDelegateRespondsTo.didReceiveNotificationResponse) { + [_originalDelegate userNotificationCenter:center + didReceiveNotificationResponse:response + withCompletionHandler:completionHandler]; + } else { + notifeeNotification = [NotifeeCoreUtil parseUNNotificationRequest:response.notification.request]; + } } if (notifeeNotification != nil) { @@ -247,11 +252,6 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center completionHandler(); }); - } else if (_originalDelegate != nil && - originalUNCDelegateRespondsTo.didReceiveNotificationResponse) { - [_originalDelegate userNotificationCenter:center - didReceiveNotificationResponse:response - withCompletionHandler:completionHandler]; } }