In my application I am registering device for APNS with this code
[[UIApplication sharedApplication]registerForRemoteNotificationTypes: (UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge )];
It will prompt an alert with two option Don't Allow and Ok.
I just want to know when didRegisterForRemoteNotificationsWithDeviceToken method will be called in application.
My problem is that didRegisterForRemoteNotificationsWithDeviceToken this method get called before user select any option Don't Allow and Ok for push notification.
Thanks.