ios - (推送通知)当我调用 getNotificationSettings 时,alertSetting 返回 NotSupported

ios - (Push Notification) When I call getNotificationSettings alertSetting is returning NotSupported

当我打电话给

UNUserNotificationCenter.current().getNotificationSettings

alertSetting 正在返回 "Not Supported"。这是回调。

Notification settings: <UNNotificationSettings: 0x17408be50; authorizationStatus: Authorized, notificationCenterSetting: Enabled, soundSetting: Enabled, badgeSetting: Enabled, lockScreenSetting: Enabled, **alertSetting: NotSupported**, carPlaySetting: Enabled, alertStyle: Banner>

这是什么意思?

我正在使用 iOS 10.3.2.

在 iPhone 上进行测试

是表示该设置不适用于您的应用。您可以在此处找到更多信息:https://developer.apple.com/documentation/usernotifications/unnotificationsetting