Contents

alertLocalizationKey

The key that identifies the localized string for the notification’s alert.

Declaration

var alertLocalizationKey: String? { get set }

Discussion

Set this property’s value to have the system display a localized string when it receives the corresponding push notification. The system uses the key to find the matching string in your app’s Localizable.string file. If you specify a value for this property, CloudKit ignores the alertBody property’s value.

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

See Also

Accessing the Notification Alert