Instance Property

alertLocalizationKey

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

Declaration

@property(nonatomic, copy) NSString *alertLocalizationKey;

Discussion

Use of this property is optional. If you set its value, the corresponding push notification causes the device to display an alert on the user’s device. The push notification obtains the text for the alert by looking up the specified key in your app’s Localizable.strings file. If you specify a value for this property, the value in the alertBody property is ignored.

For information about localizing string resources, see Internationalization and Localization Guide.

See Also

Accessing the Notification Info

alertBody

The text 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.

shouldSendContentAvailable

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