The abstract base class for CloudKit notifications.
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 3.0+
Notification objects wrap the data associated with a push notification. Use notification objects to wrap recently received push notification data or to fetch notification objects representing already delivered push notifications from a container. In both cases, the information in the notification object tells you what changed.
CKNotification class itself is an abstract class. When you create a new notification object from a payload dictionary, the
init(from method instantiates a subclass of the appropriate type. Similarly, when you fetch notifications from a container, what you receive are instances of a concrete subclass. The base
CKNotification class provides information about the push notification and how it was delivered. Specific subclasses contain specific data indicating what change actually occurred.