---
title: shouldAlert
framework: accessorynotifications
role: symbol
role_heading: Instance Property
path: accessorynotifications/alertingcontext/shouldalert
---

# shouldAlert

A Boolean value that indicates the recommended alerting behavior.

## Declaration

```swift
var shouldAlert: Bool { get }
```

## Discussion

Discussion Use this property to closely match the iPhone’s alerting behavior. The system sets this value based on notification settings, device Focus state, and other alerting factors.

## See Also

### Determining alerting behavior

- [notificationCanAlert](accessorynotifications/alertingcontext/notificationcanalert.md)
- [isSuppressedByFocus](accessorynotifications/alertingcontext/issuppressedbyfocus.md)
