IOSNotificationSettings
An interface representing the current authorization status and notification-related settings for your app.
This interface is returned from requestPermission
and getNotificationSettings
.
View the Observing Settings documentation to learn more.
Enum describing if notifications will alert the user.
alert: IOSNotificationSetting;
Enum describing if notifications can be announced to the user via 3rd party services such as Siri.
announcement: IOSNotificationSetting;
For example, if the notification can be automatically read by Siri while the user is wearing AirPods.
Overall notification authorization status for the application.
authorizationStatus: AuthorizationStatus;
Enum describing if notifications can update the application badge.
badge: IOSNotificationSetting;
Enum describing if notifications can be displayed in a CarPlay environment.
carPlay: IOSNotificationSetting;
Enum describing if critical notifications are allowed.
criticalAlert: IOSNotificationSetting;
inAppNotificationSettings: IOSNotificationSetting;
Enum describing if notifications will be displayed on the lock screen.
lockScreen: IOSNotificationSetting;
Enum describing if notifications will be displayed in the notification center.
notificationCenter: IOSNotificationSetting;
Enum describing if notification previews will be shown.
showPreviews: IOSShowPreviewsSetting;
Enum describing if notifications can trigger a sound.
sound: IOSNotificationSetting;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License and code samples are licensed under the Apache 2.0 License.
All product names, logos, and brands are property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement.