---
title: CKNotification.ID
framework: cloudkit
role: symbol
role_heading: Class
path: cloudkit/cknotification/id
---

# CKNotification.ID

An object that uniquely identifies a push notification that a container sends.

## Declaration

```swift
class ID
```

## Overview

Overview You don’t create notification IDs directly. The server creates them when it creates instances of CKNotification that correspond to the push notifications that CloudKit sends to your app. You can compare two IDs using the isEqual(_:) method to determine whether two notifications are the same. This class defines no methods or properties.

## Topics

### Initializers

- [init(coder:)](cloudkit/cknotification/id/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Identifying the Notification

- [notificationID](cloudkit/cknotification/notificationid.md)
- [notificationType](cloudkit/cknotification/notificationtype-swift.property.md)
- [CKNotification.NotificationType](cloudkit/cknotification/notificationtype-swift.enum.md)
- [containerIdentifier](cloudkit/cknotification/containeridentifier.md)
