Contents

notificationCanAlert

A Boolean value that indicates whether the accessory can alert the person for the notification.

Declaration

var notificationCanAlert: Bool

Discussion

A true value indicates that the notification includes sound and alert permissions, and the person allows alerts. The system might set this property to false if the notification already alerted on another device or if device settings disable alerting for the notification. This property doesn’t account for Focus state; see isSuppressedByFocus and shouldAlert.

See Also

Determining alerting behavior