Instance Property


The names of fields to include in the push notification payload.


@property(nonatomic, copy) NSArray<CKRecordFieldKey> *desiredKeys;


This property contains an array of NSString objects, each of which corresponds to the name of a field in the record that triggered the notification. When a push notification is delivered, the keys and their corresponding values are included in the payload of the push notification. You can include a maximum of three keys in the array.

For the keys you specify, the allowable values are NSString, NSNumber, CLLocation, NSDate, and CKReference. You cannot specify keys whose values contain other data types. String values that are greater than 100 characters in length may be truncated when added to the push notification.