Contents

Notifications.NotificationSettingsItem

The notification settings dictionary.

Declaration

object Notifications.NotificationSettingsItem

Properties

NameTypeDescription
AlertTypeinteger

The type of alert for notifications for this app:

  • 0: None

  • 1: Temporary Banner

  • 2: Persistent Banner

BadgesEnabledboolean

If true, enables badges for this app.

BundleIdentifier Requiredstring

The bundle identifier of the app to which to apply these notification settings.

CriticalAlertEnabledboolean

If true, enables critical alerts that can ignore Do Not Disturb and ringer settings for this app.

Available: iOS 12+ | iPadOS 12+ | macOS 10.15+

GroupingTypeinteger

The type of grouping for notifications for this app:

  • 0: Automatic: Group notifications into app-specified groups.

  • 1: By app: Group notifications into one group.

  • 2: Off: Don’t group notifications.

Available: iOS 12+ | iPadOS 12+

NotificationsEnabledboolean

If true, enables notifications for this app.

PreviewTypeinteger

The type previews for notifications. This key overrides the value at Settings>Notifications>Show Previews.

  • 0 - Always: Previews will be shown when the device is locked and unlocked

  • 1 - When Unlocked: Previews will only be shown when the device is unlocked

  • 2 - Never: Previews will never be shown

Available: iOS 14+ | iPadOS 14+

ShowInCarPlayboolean

If true, enables notifications in CarPlay for this app.

Available: iOS 12+ | iPadOS 12+

ShowInLockScreenboolean

If true, enables notifications on the Lock Screen for this app.

ShowInNotificationCenterboolean

If true, enables notifications in the notification center for this app.

SoundsEnabledboolean

If true, enables sounds for this app.