Instance Property

isPruned

A Boolean value indicating whether some push notification content was removed prior to delivery.

Declaration

var isPruned: Bool { get }

Discussion

The server may truncate the payload data of a push notification if the size of that data exceeds the allowed maximum. For notification objects you create using a payload dictionary, the value of this property is true if the payload data does not contain all information related to the change. The value is false if the payload data was complete.

For notification objects you fetch from the database using a CKFetchNotificationChangesOperation object, the value of this property is always true.

When payload data must be dropped, the server removes data in a specific order. The properties defined by this class are among the last to be dropped because they define information about how to deliver the push notification. The following list shows the properties of this class that are dropped in the order in which they are dropped.

  1. containerIdentifier

  2. Keys defined by subclasses of CKNotification

  3. soundName

  4. alertLaunchImage

  5. alertActionLocalizationKey

  6. alertBody

  7. alertLocalizationArgs

  8. alertLocalizationKey

  9. badge

  10. notificationID

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