I red the method - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken is sent to the delegate when the application successfully registers with Apple Push Service (APS). At a low level how does this work? Does the application try to call it anytime you start an app AND verifies the device is connected? Is it called multiple times until the device is connected? Does it stop working when you have received your device token?
Thanks in advance.
The
didRegistercallback is actually a direct response to the- (void)registerForRemoteNotificationTypes:(UIRemoteNotificationType)typesmethod. Every time your application starts up, it’s your responsibility to:registerForRemoteNotificationTypes:on your application object (UIApplication / NSApplication)application:didRegisterForRemoteNotificationsWithDeviceTokenand theapplication:didFailToRegisterForRemoteNotificationsWithError:callbacks.To specifically answer your questions: