Enumeration

UNAuthorizationOptions

Constants for requesting authorization to interact with the user.

Declaration

typedef enum UNAuthorizationOptions : NSUInteger {
    ...
} UNAuthorizationOptions;

Topics

Options

UNAuthorizationOptionBadge

The ability to update the app’s badge.

UNAuthorizationOptionSound

The ability to play sounds.

UNAuthorizationOptionAlert

The ability to display alerts.

UNAuthorizationOptionCarPlay

The ability to display notifications in a CarPlay environment.

UNAuthorizationOptionCriticalAlert

The ability to play sounds for critical alerts.

UNAuthorizationOptionProvidesAppNotificationSettings

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

UNAuthorizationOptionProvisional

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

No Authorization

UNAuthorizationOptionNone

No authorization options.

See Also

Managing Settings and Authorization

- requestAuthorizationWithOptions:completionHandler:

Requests authorization to interact with the user when local and remote notifications are delivered to the user's device.

- getNotificationSettingsWithCompletionHandler:

Requests the notification settings for this app.

supportsContentExtensions

A Boolean value indicating whether the current device supports notification content extensions.