The authorization status for displaying alerts.
- iOS 10.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- watchOS 3.0+
When the value of this property is
UNNotification, the app is authorized to display alerts. Authorization does not guarantee that alerts always appear on the user’s screen. When a device is unlocked, the
alert property determines the presentation style for the alert, which can include not displaying the alert at all.
The system tries to display an alert when the
body properties of a
UNNotification object contain values, or when the
aps dictionary in a remote notification contains the