Although this question is old and agrees with most of @Jerred's answers, I still thought about posting an updated answer.
The answer to the main question in the stream: NO .
application: didFailToRegisterForRemoteNotificationsWithError: raised when an application signs with the wrong provisioning profile.
Besides,
application: didRegisterForRemoteNotificationsWithDeviceToken: called only when the user turns on at least one of the icons, banner / warning or sound in the notification center (in the Settings application) for your application.
There are scenarios in which iOS will not call any of these methods
- When a user refuses to grant permissions for the application to send push notifications
- If there is no network connection and permissions for sending push notifications are granted.
- When a user disables push notifications for an application from the notification center in the Settings application.
apalvai Apr 18 '14 at 21:34 2014-04-18 21:34
source share