---
title: notificationCanAlert
framework: accessorynotifications
role: symbol
role_heading: Instance Property
path: accessorynotifications/alertingcontext/notificationcanalert
---

# notificationCanAlert

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

## Declaration

```swift
var notificationCanAlert: Bool
```

## Discussion

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

- [shouldAlert](accessorynotifications/alertingcontext/shouldalert.md)
- [isSuppressedByFocus](accessorynotifications/alertingcontext/issuppressedbyfocus.md)
