Instance Property

shouldSendContentAvailable

A Boolean value indicating whether the push notification should include the content-available flag.

Declaration

@property(nonatomic, assign) BOOL shouldSendContentAvailable;

Discussion

When this property is YES, the server includes the content-available flag in the push notification’s payload. That flag causes the system to wake or launch an app that is not currently running. The app is then given background execution time to download any data related to the push notification, such as the set of records that changed. If the app is already running in the foreground, the inclusion of this flag has no additional effect and the notification is delivered to the app delegate for processing as usual.

The default value of this property is NO.

See Also

Accessing the Notification Info

alertBody

The text to use for the alert message.

alertLocalizationKey

The key that identifies the localized string to use for the alert message.

alertLocalizationArgs

The array of fields to use when building an alert message.

alertActionLocalizationKey

The key that identifies the text to use for the action button in the alert panel.

alertLaunchImage

The filename of an image to use as a launch image.

category

Name of the action group corresponding to this notification.

soundName

The name of the sound file to play when a notification arrives.

shouldBadge

A Boolean setting that controls whether a badge value should be incremented.