We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NSApplicationLaunchUserNotificationKey
1 parent 2ac1263 commit 46b54ccCopy full SHA for 46b54cc
packages/firebase_messaging/firebase_messaging/ios/Classes/FLTFirebaseMessagingPlugin.m
@@ -194,8 +194,13 @@ - (void)messaging:(nonnull FIRMessaging *)messaging
194
195
- (void)application_onDidFinishLaunchingNotification:(nonnull NSNotification *)notification {
196
// Setup UIApplicationDelegate.
197
+#if TARGET_OS_OSX
198
+ NSDictionary *remoteNotification =
199
+ notification.userInfo[NSApplicationLaunchUserNotificationKey];
200
+#else
201
NSDictionary *remoteNotification =
202
notification.userInfo[UIApplicationLaunchOptionsRemoteNotificationKey];
203
+#endif
204
if (remoteNotification != nil) {
205
// If remoteNotification exists, it is the notification that opened the app.
206
_initialNotification =
0 commit comments