Instance Property

desiredKeys

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

Declaration

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

Discussion

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software