I am working on a macOS app that involves remote notifications. In my app delegate appDidFinishLaunching, I simply call
I then get one of two callbacks in the app delegate, either didRegisterForRemoteNotificationsWithDeviceToken or didFailToRegisterForRemoteNotificationsWithError. This has worked fine forever in previous versions.
In Big Sur, this does not seem to work at all. I call the registerForRemoteNotifications, but I never get either callback called.
My hypothesis was that this is because of the new app lifecycle (which is where I originally tried this out). I built a small test app with AppKit app delegate lifecycle. It is equally broken there.
What gives? Why cannot I register for remote notifications in Big Sur?
Code Block NSApplication.shared.registerForRemoteNotifications()
I then get one of two callbacks in the app delegate, either didRegisterForRemoteNotificationsWithDeviceToken or didFailToRegisterForRemoteNotificationsWithError. This has worked fine forever in previous versions.
In Big Sur, this does not seem to work at all. I call the registerForRemoteNotifications, but I never get either callback called.
My hypothesis was that this is because of the new app lifecycle (which is where I originally tried this out). I built a small test app with AppKit app delegate lifecycle. It is equally broken there.
What gives? Why cannot I register for remote notifications in Big Sur?