Post

Replies

Boosts

Views

Activity

Reply to iOS 26 didRegisterForRemoteNotificationsWithDeviceToken is not being called
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { let deviceType = UIDevice.current.userInterfaceIdiom == .pad ? "iPad" : "iPhone" let tokenString = deviceToken.map { String(format: "%02.2hhx", $0) }.joined() print("🎉 didRegisterForRemoteNotificationsWithDeviceToken CALLED on \(deviceType)!") print("✅ APNs device token registered on \(deviceType): \(tokenString)") Messaging.messaging().apnsToken = deviceToken // Give Firebase a moment to process the APNs token DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { [weak self] in self?.fetchFCMToken(reason: "apnsRegistered") } } This method is not being called. Tested device: Ipad Air - iOS 26.0(Simulator) also in real iPad. xcode 26.0.1
Oct ’25