Commit d8a3d25b authored by David Stoker's avatar David Stoker

Fix setting of the `openedLocalNotification` to use the `userInfo` from the...

Fix setting of the `openedLocalNotification` to use the `userInfo` from the `UILocalNotification` if it exists instead of the `UILocalNotification` itself
parent bd4d6b7b
...@@ -222,7 +222,8 @@ RCT_EXPORT_MODULE() ...@@ -222,7 +222,8 @@ RCT_EXPORT_MODULE()
object:nil]; object:nil];
[RNNotificationsBridgeQueue sharedInstance].openedRemoteNotification = [_bridge.launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey]; [RNNotificationsBridgeQueue sharedInstance].openedRemoteNotification = [_bridge.launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
[RNNotificationsBridgeQueue sharedInstance].openedLocalNotification = [_bridge.launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey]; UILocalNotification *localNotification = [_bridge.launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];
[RNNotificationsBridgeQueue sharedInstance].openedLocalNotification = localNotification ? localNotification.userInfo : nil;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment