【发布时间】:2019-10-10 11:00:21
【问题描述】:
我正在使用 FCM 进行推送通知。我曾经使用以下方法刷新应用程序的内容
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
现在在 iOS13 中这个方法不再触发了。我也包括了 apns-push-type 和 apns-priority。
【问题讨论】:
-
是“didReceiveRegistrationToken”还是“didRegisterForRemoteNotificationsWithDeviceToken”方法调用?尝试使用最新的 xcode 11 构建新的 iPA。
-
是的。他们工作正常
-
如何将您的 APN 令牌转发给 FCM?你是依靠 FCM swizzling 还是手动转发?
-
它与 FCM 混合
标签: swift firebase firebase-cloud-messaging ios13