标签: 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。为什么呢?
false
granted