Contents

CKSubscription.NotificationInfo

An object that describes the configuration of a subscription’s push notifications.

Declaration

class NotificationInfo

Overview

When configuring a subscription, use this class to specify the type of push notifications you want to generate when conditions meet the subscription’s trigger. You can provide content that the system displays to the user, describe the sounds to play, and indicate whether the app’s icon has a badge. You can request that the notification include information about the record that triggers it.

When your app receives a push notification that a subscription generates, instantiate an instance of CKNotification using the init(fromRemoteNotificationDictionary:) method and pass the notification’s payload. The object that the method returns contains the data you specify when configuring the subscription.

For more information about push notification alerts and how they display to the user, see Apple Push Notification Service in Local and Remote Notification Programming Guide.

Topics

Creating Notification Information

Grouping Notifications

Displaying Badges

Accessing the Notification Alert

Accessing the Notification Info

Accessing the Record’s Data

Accessing the Notification Title

Accessing the Notification Subtitle

Initializers

See Also

Specifying the Push Notification Data