---
title: queryNotificationReason
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckquerynotification/querynotificationreason
---

# queryNotificationReason

The event that triggers the push notification.

## Declaration

```swift
var queryNotificationReason: CKQueryNotification.Reason { get }
```

## Discussion

Discussion Subscription notifications result from the creation, deletion, or updating of a single record. The record in question must match the subscription’s predicate for an event to trigger.

## See Also

### Getting the Notification Attributes

- [CKQueryNotification.Reason](cloudkit/ckquerynotification/reason.md)
