if ([[[UIDevice currentDevice]systemVersion]floatValue] >= 8.0) { UIUserNotificationSettings *current = [[UIApplication sharedApplication]currentUserNotificationSettings]; if (current.types != UIUserNotificationTypeNone){ NSLog(@"Notifications Enabled ios 8"); } else { NSLog(@"Notifications not Enabled ios 8"); } } else { UIRemoteNotificationType types = [[UIApplication sharedApplication]enabledRemoteNotificationTypes]; if (types != UIRemoteNotificationTypeNone) { NSLog(@"Notifications Enabled"); } else { NSLog(@"Notifications not Enabled"); } }
source share