Instance Property

soundName

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

Declaration

@property(nonatomic, readonly, copy) NSString *soundName;

Discussion

This property contains the string used to locate a sound file in your app’s 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 of the alert message.

alertLocalizationKey

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

alertLocalizationArgs

The array of fields used to build the alert message

alertActionLocalizationKey

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

alertLaunchImage

The filename of the launch image displayed when your app is launched from the push notification alert.

badge

The current badge value.

category

Name of the action group corresponding to this notification.

subscriptionID

The identifier of the subscription that caused this notification to fire.