Instance Property

alertActionLocalizationKey

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

Declaration

var alertActionLocalizationKey: String? { get }

Discussion

When this property is nil, the alert panel triggered by the push notification contains only an OK button to dismiss the alert. When this property is not nil, the alert panel contains one button to dismiss the alert and a second button to open your app. 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.

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 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 badge: NSNumber?

The current badge value.

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