update AppDelegate for push noti ios

This commit is contained in:
kanyanat 2025-12-02 16:01:20 +07:00
parent d24c733897
commit b29c7014ae

View File

@ -89,4 +89,13 @@ didReceiveNotificationResponse:(UNNotificationResponse *)response
completionHandler(); 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 @end