iOS推送通知 - UNUserNotificationCenter.current()。requestAuthorization - 权限未授予 - 为什么?

时间:2018-03-22 14:03:50

标签: ios swift xcode push-notification apple-push-notifications

这是我的代码:

    if #available(iOS 10.0, *) {
        UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) { (granted, error) in
        ....
    }

false获得granted。为什么呢?

0 个答案:

没有答案