An object that specifies the push notification data that the server sends to your app when a subscription finds a match.
- iOS 8.0+
- macOS 10.10+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 6.0+Beta
When configuring a
CKSubscription object, create one of these objects and use it to specify the type of push notifications you want generated when the subscription’s trigger condition is met. You can provide a message for an alert panel, information about the sounds to play, and information about whether the app should be badged. You can also ask the server to provide information about the record that triggered the notification.
When you receive a push notification generated by a subscription, use the
init(from method of
CKNotification to create a notification object from the payload data. That object contains the data you specified using this class when configuring the subscription.