Platforms to show: All Mac Windows Linux Cross-Platform

Back to UNUserNotificationCenterMBS class.

UNUserNotificationCenterMBS.AuthorizationOptionAlert = 4

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 19.1
One of the constants for requesting authorization to interact with the user.

The ability to display alerts.

UNUserNotificationCenterMBS.AuthorizationOptionAnnouncement = 128

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 20.5
One of the constants for requesting authorization to interact with the user.

The ability for Siri to automatically read out messages over AirPods.

UNUserNotificationCenterMBS.AuthorizationOptionBadge = 1

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 19.1
One of the constants for requesting authorization to interact with the user.

The ability to update the app’s badge.

UNUserNotificationCenterMBS.AuthorizationOptionCarPlay = 8

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 19.1
One of the constants for requesting authorization to interact with the user.

The ability to display notifications in a CarPlay environment.

UNUserNotificationCenterMBS.AuthorizationOptionCriticalAlert = 16

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 19.1
One of the constants for requesting authorization to interact with the user.

The ability to play sounds for critical alerts.
Critical alerts ignore the mute switch and Do Not Disturb; the system plays a critical alert's sound regardless of the device's mute or Do Not Disturb settings. You can specify a custom sound and volume.
Critical alerts require a special entitlement issued by Apple.

UNUserNotificationCenterMBS.AuthorizationOptionNone = 0

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 19.1
One of the constants for requesting authorization to interact with the user.

No options.

UNUserNotificationCenterMBS.AuthorizationOptionProvidesAppNotificationSettings = 32

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 19.1
One of the constants for requesting authorization to interact with the user.

An option indicating the system should display a button for in-app notification settings.

UNUserNotificationCenterMBS.AuthorizationOptionProvisional = 64

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 19.1
One of the constants for requesting authorization to interact with the user.

The ability to post noninterrupting notifications provisionally to the Notification Center.

UNUserNotificationCenterMBS.AuthorizationOptionSound = 2

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 19.1
One of the constants for requesting authorization to interact with the user.

The ability to play sounds.

UNUserNotificationCenterMBS.NotificationPresentationOptionAlert = 4

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 19.1
One of the constants to indicate how to present a notification in a foreground app.

Display the alert using the content provided by the notification.

UNUserNotificationCenterMBS.NotificationPresentationOptionBadge = 1

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 19.1
One of the constants to indicate how to present a notification in a foreground app.

Apply the notification's badge value to the app’s icon.
for MacOS 11.0 or newer, please use NotificationPresentationOptionBanner + NotificationPresentationOptionList + NotificationPresentationOptionBadge.

UNUserNotificationCenterMBS.NotificationPresentationOptionBanner = 16

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 20.5
One of the constants to indicate how to present a notification in a foreground app.

New for macOS 11.0

UNUserNotificationCenterMBS.NotificationPresentationOptionList = 8

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 20.5
One of the constants to indicate how to present a notification in a foreground app.

New for macOS 11.0

UNUserNotificationCenterMBS.NotificationPresentationOptionNone = 0

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 19.1
One of the constants to indicate how to present a notification in a foreground app.

No alert.
Specify this constant when you want to silence any user interactions for a notification.

UNUserNotificationCenterMBS.NotificationPresentationOptionSound = 2

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 19.1
One of the constants to indicate how to present a notification in a foreground app.

Play the sound associated with the notification.

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...