We have an app in Swift that uses push notifications. It has a deployment target of iOS 15.0
I originally audited our app for iOS 26 by building it with Xcode 26 beta 3. At that point, all was well. Our implementation of application:didRegisterForRemoteNotificationsWithDeviceToken
was called.
But when rebuilding the app with beta 4, 5 and now 6, that function is no longer being called.
I created a simple test case by creating a default iOS app project, then performing these additional steps:
- Set bundle ID to our app's ID
- Add the Push Notifications capability
- Add in
application:didRegisterForRemoteNotificationsWithDeviceToken:
with aprint("HERE")
just to set a breakpoint. - Added the following code inside
application:didFinishLaunchingWithOptions:
along with setting a breakpoint on theregisterForRemoteNotifications
line:
UNUserNotificationCenter.current().requestAuthorization(options: [.badge, .alert, .sound]) { granted, _ in
DispatchQueue.main.async {
UIApplication.shared.registerForRemoteNotifications()
}
}
Building and running with Xcode 26 beta 6 (17A5305f) generates these two different outcomes based upon the OS running in the Simulator:
- iPhone 16 Pro simulator running iOS 18.4 - both breakpoints are reached
- iPhone 16 Pro simulator running iOS 26 - only the breakpoint on
UIApplication.shared.registerForRemoteNotifications
is reached.
Assuming this is a bug in iOS 26. Or, is there something additional we now need to do to get push notifications working?