if ([UIApplication sharedApplication].isRegisteredForRemoteNotifications) {
NSLog(@"可以通知");
}else{
NSLog(@"不允许通知");
}
if ([UIApplication sharedApplication].isRegisteredForRemoteNotifications) {
NSLog(@"可以通知");
}else{
NSLog(@"不允许通知");
}
本文标题:App 查看是否获得推送通知权限
本文链接:https://www.haomeiwen.com/subject/uyfwsftx.html
网友评论