diff --git a/packages/firebase_messaging/firebase_messaging/ios/firebase_messaging/Sources/firebase_messaging/FLTFirebaseMessagingPlugin.m b/packages/firebase_messaging/firebase_messaging/ios/firebase_messaging/Sources/firebase_messaging/FLTFirebaseMessagingPlugin.m index 74bbcb5142e0..bcb43b3b724f 100644 --- a/packages/firebase_messaging/firebase_messaging/ios/firebase_messaging/Sources/firebase_messaging/FLTFirebaseMessagingPlugin.m +++ b/packages/firebase_messaging/firebase_messaging/ios/firebase_messaging/Sources/firebase_messaging/FLTFirebaseMessagingPlugin.m @@ -214,7 +214,8 @@ - (void)messaging:(nonnull FIRMessaging *)messaging - (void)application_onDidFinishLaunchingNotification:(nonnull NSNotification *)notification { // Setup UIApplicationDelegate. #if TARGET_OS_OSX - NSDictionary *remoteNotification = notification.userInfo[NSApplicationLaunchUserNotificationKey]; + UNNotificationResponse *notificationResponse = notification.userInfo[NSApplicationLaunchUserNotificationKey]; + NSDictionary *remoteNotification = notificationResponse.notification.request.content.userInfo; #else NSDictionary *remoteNotification = notification.userInfo[UIApplicationLaunchOptionsRemoteNotificationKey];