From d1486910566c6b67df25066610f32b9aa963ba65 Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Wed, 27 Sep 2017 21:53:12 -0400 Subject: [PATCH] Update AppDelegate.m --- .../simple-fcm-client/ios/SimpleFcmClient/AppDelegate.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Examples/simple-fcm-client/ios/SimpleFcmClient/AppDelegate.m b/Examples/simple-fcm-client/ios/SimpleFcmClient/AppDelegate.m index 48f3623..b9cab3f 100644 --- a/Examples/simple-fcm-client/ios/SimpleFcmClient/AppDelegate.m +++ b/Examples/simple-fcm-client/ios/SimpleFcmClient/AppDelegate.m @@ -45,10 +45,17 @@ [RNFIRMessaging willPresentNotification:notification withCompletionHandler:completionHandler]; } +#if defined(__IPHONE_11_0) - (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)(void))completionHandler { [RNFIRMessaging didReceiveNotificationResponse:response withCompletionHandler:completionHandler]; } +#else +- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)())completionHandler +{ + [RNFIRMessaging didReceiveNotificationResponse:response withCompletionHandler:completionHandler]; +} +#endif -(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification { [RNFIRMessaging didReceiveLocalNotification:notification]; -- 2.26.2