Instance Property

soundName

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

Declaration

@property(nonatomic, copy) NSString *soundName;

Discussion

Use of this property is optional. If you specify a value, the string is used to locate a sound file in the app bundle. That sound file is played as an alert when a push notification arrives on the user’s device. If the specified sound file does not exist, or if you specify the string default for this property, the system plays the default alert sound.

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.

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.