Instance Property

alertActionLocalizationKey

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

Declaration

@property(nonatomic, copy) NSString *alertActionLocalizationKey;

Discussion

This property identifies the text to use for the button to open your app. Specifically, it contains the name of a key to look up in the app’s Localizable.strings file, the value of which is used for the button title.

Specifying a value for this property is optional. When its value is nil, the alert panel triggered by the push notification contains only an OK button to dismiss the alert. When its value is not nil, the alert panel contains one button to dismiss the alert and a second button to open your app.

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.

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.

shouldSendContentAvailable

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