diff --git a/messaging/src/ios/messaging.mm b/messaging/src/ios/messaging.mm index 5a44264bfc..3029bc21c0 100644 --- a/messaging/src/ios/messaging.mm +++ b/messaging/src/ios/messaging.mm @@ -906,11 +906,11 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)notificationCenter #endif ::firebase::messaging::g_message_notification_opened = true; ::firebase::messaging::NotifyApplicationAndServiceOfMessage(userInfo); - id user_delegate = ::firebase::messaging::g_user_delegate; - [user_delegate userNotificationCenter:notificationCenter - didReceiveNotificationResponse:response - withCompletionHandler:completionHandler]; } + id user_delegate = ::firebase::messaging::g_user_delegate; + [user_delegate userNotificationCenter:notificationCenter + didReceiveNotificationResponse:response + withCompletionHandler:completionHandler]; } #endif // FIREBASE_PLATFORM_IOS