presentBadge property

bool? presentBadge
final

Indicates if badge value should be applied when the notification is triggered while app is in the foreground.

Corresponds to https://developer.apple.com/documentation/usernotifications/unnotificationpresentationoptions/1649515-badge

When this is set to null, it will use the default setting given to DarwinInitializationSettings.defaultPresentBadge.

On iOS, this property is only applicable to iOS 10 or newer. On macOS, this property is only applicable to macOS 10.14 or newer.

Implementation

final bool? presentBadge;