From 6152d1e4b1dfea8b54301a9249fb300503dab7bc Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Mon, 13 Feb 2017 09:43:30 -0500 Subject: [PATCH] fix iOS9 local notification --- ios/RNFIRMesssaging.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RNFIRMesssaging.m b/ios/RNFIRMesssaging.m index 4cd92c7..f3600c9 100644 --- a/ios/RNFIRMesssaging.m +++ b/ios/RNFIRMesssaging.m @@ -148,7 +148,7 @@ RCT_EXPORT_MODULE() + (void)didReceiveLocalNotification:(UILocalNotification *)notification { NSMutableDictionary* data = [[NSMutableDictionary alloc] initWithDictionary: notification.userInfo]; [data setValue:@"local_notification" forKey:@"_notificationType"]; - [[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived object:self userInfo:data]; + [[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived object:self userInfo:@{@"data": data}]; } + (void)didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(nonnull RCTNotificationResponseCallback)completionHandler -- 2.26.2