Commit d1486910 authored by Libin Lu's avatar Libin Lu Committed by GitHub

Update AppDelegate.m

parent d28c61fe
...@@ -45,10 +45,17 @@ ...@@ -45,10 +45,17 @@
[RNFIRMessaging willPresentNotification:notification withCompletionHandler:completionHandler]; [RNFIRMessaging willPresentNotification:notification withCompletionHandler:completionHandler];
} }
#if defined(__IPHONE_11_0)
- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)(void))completionHandler - (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)(void))completionHandler
{ {
[RNFIRMessaging didReceiveNotificationResponse:response withCompletionHandler: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 { -(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
[RNFIRMessaging didReceiveLocalNotification:notification]; [RNFIRMessaging didReceiveLocalNotification:notification];
......
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