Contents

body

The localized text that provides the notification’s main content.

Declaration

var body: String { get }

Discussion

The body text contains the final text that you want to display. If your app isn’t authorized to display alert-based notifications, the system ignores this property.

If you specified two percent symbols (%%) in the message body, the system replaces it with a single percent symbol (%). The system strips all other printf style escape characters from your string prior to display.

See Also

Accessing the primary content