diff --git a/RNNotifications/RNNotifications.m b/RNNotifications/RNNotifications.m index 9e5f5c7b5d2251ad8e2d69404675fd22459096db..e82cdf0b8ed446f357cb02b33faea283ff42c5cd 100644 --- a/RNNotifications/RNNotifications.m +++ b/RNNotifications/RNNotifications.m @@ -222,7 +222,8 @@ RCT_EXPORT_MODULE() object:nil]; [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; } /*