Instance Property

authorizationStatus

The app's ability to schedule and receive local and remote notifications.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
@property(readonly, nonatomic) UNAuthorizationStatus authorizationStatus;
macOS
@property(readonly, atomic) UNAuthorizationStatus authorizationStatus;

Discussion

When the value of this property is UNAuthorizationStatusAuthorized, your app is allowed to schedule and receive local and remote notifications. When authorized, use the alertSetting, badgeSetting, and soundSetting properties to specify which types of interactions are allowed. When the value of the property is UNAuthorizationStatusDenied, the system doesn't deliver notifications to your app, and the system ignores any attempts to schedule local notifications.

The value of this property is UNAuthorizationStatusNotDetermined if your app has never requested authorization using the requestAuthorizationWithOptions:completionHandler: method.

See Also

Getting the Authorization Status

UNAuthorizationStatus

Constants indicating whether the app is allowed to schedule notifications.