Does iOS trigger a NSNotification (which contains the deviceToken) when didRegisterForRemoteNotificationsWithDeviceToken is called?
I know I can always save the token in NSUserDefaults from within the AppDelegate and access it anywhere, but I am wondering if there is a better way. I'm thinking something along the lines of UIApplicationDidEnterBackgroundNotification.
Update: The use case if I wanted to get the device token without implementing that delegate method in the AppDelegate.
No. You will need to implement didRegisterForRemoteNotificationsWithDeviceToken . I would imagine one argument against a NSNotification in this situation is that you need to intelligently handle the failure scenarios with didFailToRegisterForRemoteNotificationsWithError.