The localized message to display in the notification alert.
SDKs
- iOS 10.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- watchOS 3.0+
Framework
- User
Notifications
Declaration
@property(copy, nonatomic) NSString *body;
@property(copy, atomic) NSString *body;
Discussion
Use this property to specify the body of the notification alert. If your app is not authorized to display alert-based notifications, this property is ignored.
The body text should contain the final text that you want to display, and should not contain any placeholder characters. To include a percent symbol (%
) in the message body, use two percent symbols (%%
). The system strips all other printf style escape characters from your string prior to display.