iOS 18.1.1 didRegisterForRemoteNotificationsWithDeviceToken not called

I have to device, one is iOS 17.0.3, the other is iOS 18.1.1. In iOS 17.0.3, everything just goes fine, but iOS 18.1.1 'didRegisterForRemoteNotificationsWithDeviceToken' and 'didFailToRegisterForRemoteNotificationsWithError' never called. I am sure I already called 'registerForRemoteNotifications' method in Appdelegate, Singning & Capabilities's Remote notification is also checked. I use Firebase, also add FirebaseAppDelegateProxyEnabled = NO in my info.plist.

Someone can tell me why? Think u for ur answer.

There should not be a difference in behavior due to the iOS version. This problem most commonly occurs due to network connection state of a device, rather the inability to contact APNs due to the network they are on.

For users of Firebase, the most common cause is Firebase taking over these two callback methods, so your copies are not being called. While you mention a setting for Firebase which I assume is supposed to not do that, I can't be sure.

My suggestion would be to either completely remove Firebase from your project and see if the methods get called, or check with Firebase to make sure it is configured correctly, and there isn't something else you need to do on iOS 18.1.1


Argun Tekant /  DTS Engineer / Core Technologies

iOS 18.1.1 didRegisterForRemoteNotificationsWithDeviceToken not called
 
 
Q