I've upgraded my devices to iOS 9 and my Xcode environment to 7.0 (7A220). My app registers for notifications via:
[[UIApplication sharedApplication] registerForRemoteNotifications];
However, neither "didRegisterForRemoteNotificationWithDeviceToken" or "didFailToRegisterForRemoteNotificationsWithError" are called. Furthermore, my app does not appear in the Settings->Notifications section (which tells me its not even trying to register for remote/push notifications)
My App ID has the following Application Services enabled:
- Game Center
- In-App Purchase
- Push Notifications
In Xcode, the following capabilities enabled:
Push Notifications
Background Modes (Remote Notifications)
This worked fine with iOS 8, with app built with Xcode 6. Also, it no longer works with an iOS 8 device when built with Xcode 7.
Do you use a simulator?
In a simulator, remote notifications are not supported.
sample code:
Xcode says:
The reason why it wasn't working was because I wasn't calling:
Prior to the call: