我想知道用户是否已经启用了 pus 通知,如何做到这一点?
我试过这个..
UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
if (types == UIRemoteNotificationTypeNone){
NSLog(@"Push is off");
}
但它不起作用,“类型”总是给出值“7”