Skip to content

Commit 13a3195

Browse files
Always forward received UNNotifications notifications to an overridden user delegate, even before the messaging SDK is initialized. (#1604)
1 parent e048269 commit 13a3195

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

messaging/src/ios/messaging.mm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -906,11 +906,11 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)notificationCenter
906906
#endif
907907
::firebase::messaging::g_message_notification_opened = true;
908908
::firebase::messaging::NotifyApplicationAndServiceOfMessage(userInfo);
909-
id<UNUserNotificationCenterDelegate> user_delegate = ::firebase::messaging::g_user_delegate;
910-
[user_delegate userNotificationCenter:notificationCenter
911-
didReceiveNotificationResponse:response
912-
withCompletionHandler:completionHandler];
913909
}
910+
id<UNUserNotificationCenterDelegate> user_delegate = ::firebase::messaging::g_user_delegate;
911+
[user_delegate userNotificationCenter:notificationCenter
912+
didReceiveNotificationResponse:response
913+
withCompletionHandler:completionHandler];
914914
}
915915
#endif // FIREBASE_PLATFORM_IOS
916916

0 commit comments

Comments
 (0)