didFailToRegisterForRemoteNotifications
when the connection with the Apple registration service fails, there is no way to find out that the user that just clicked does not allow, but you can check the UIApplication, there is a way to find out the registration status of PushNotification
NSUInteger rntypes = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
if (rntypes == UIRemoteNotificationTypeNote) {
// application is not registered for any type of push notification
}
source
share