判断用户通知
UIUserNotificationSettings *setting = [[UIApplication sharedApplication] currentUserNotificationSettings];
if (UIUserNotificationTypeNone != setting.types) {
NSLog(@"打开通知");
} else {
NSLog(@"未打开通知");
}
判断用户通知
UIUserNotificationSettings *setting = [[UIApplication sharedApplication] currentUserNotificationSettings];
if (UIUserNotificationTypeNone != setting.types) {
NSLog(@"打开通知");
} else {
NSLog(@"未打开通知");
}