DidRegisterForRemoteNotificationsWithDeviceToken Method not calling in iOS7

I use Apple push notifications in my applications, requesting a device token using

 [[UIApplication sharedApplication] registerForRemoteNotificationTypes:
 (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];

When it asks for a warning, for example, you want to allow push notifications if I click "Do not allow" in iOS6, however, it calls the delegation method "didRegisterForRemoteNotificationsWithDeviceToken" and gives a DeviceToken, but the same thing does not happen in iOS7.When I tried the same thing in iOS7, the delegate method does not call and does not generate a DeviceToken. The device box is very important to me, because I use the token in the registration process. Please let me know why the device’s token is not generated in iOS7, does the apple do anything to request device tokens from iOS6 to iOS7.

+3
source share

All Articles