update AppDelegate for push noti ios
This commit is contained in:
parent
d24c733897
commit
b29c7014ae
@ -89,4 +89,13 @@ didReceiveNotificationResponse:(UNNotificationResponse *)response
|
||||
completionHandler();
|
||||
}
|
||||
|
||||
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
|
||||
[FIRMessaging messaging].APNSToken = deviceToken;
|
||||
}
|
||||
|
||||
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
|
||||
[[FIRMessaging messaging] appDidReceiveMessage:userInfo];
|
||||
completionHandler(UIBackgroundFetchResultNoData);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user