hello friends ,
You can check user's current notification setting by following line of codes.
// this method is deprecated in iOS 8.0
UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
if (type == UIUserNotificationTypeNone){
   // do code here 
}
// you can use this method instead
UIUserNotificationSettings *type = [[UIApplication sharedApplication]currentUserNotificationSettings];
     if (type == UIUserNotificationTypeNone)
    {
       //do code here
    }
                       
                    
0 Comment(s)