Instance Property

badge

The current badge value.

Declaration

@NSCopying var badge: NSNumber? { get }

Discussion

The value of this property is the integer value displayed in the app’s badge at the time the push notification was sent.

See Also

Accessing the Notification Info

var alertBody: String?

The text of the alert message.

var alertLocalizationKey: String?

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

var alertLocalizationArgs: [String]?

The array of fields used to build the alert message

var alertActionLocalizationKey: String?

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

var alertLaunchImage: String?

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

var soundName: String?

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

var category: String?

Name of the action group corresponding to this notification.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software