defaultPresentAlert property
Configures the default setting on if an alert should be displayed when a notification is triggered while app is in the foreground.
Corresponds to https://developer.apple.com/documentation/usernotifications/unnotificationpresentationoptions/1649506-alert
Default value is true.
On iOS, this property is only applicable to iOS 10 or newer but not iOS 14 or beyond (i.e. iOS versions >= 10 and < 14) On macOS, this property is only applicable to macOS 10.14 but not macOS 11 or beyond (i.e. macOS verisons >= 10.14 and < 14) For iOS and macOS versions beyond the aforementioned ranges, defaultPresentBanner and defaultPresentList are referenced as Apple deprecated the alert presentation option.
Implementation
final bool defaultPresentAlert;