DarwinOptions
Notification content and foreground presentation on iOS and macOS.
Presentation flags set to None inherit the plugin's initialization defaults, which
this extension leaves enabled. They affect presentation when the app is in the
foreground; they do not grant notification permission.
Properties
attachments- Local device file paths of media to attach to the notification.badge_number- Number to apply to the application icon badge.critical_sound_volume- Volume of a critical-alert sound, from0.0to1.0.interruption_level- Delivery urgency on iOS 15+ and macOS 12+.present_alert- Whether to display a foreground alert using the older presentation option.present_badge- Whether to apply the badge while the app is in the foreground.present_banner- Whether to show a foreground banner.present_list- Whether to add a foreground notification to Notification Center.present_sound- Whether to play sound while the app is in the foreground.sound- Name of a notification sound file in the app bundle.subtitle- Secondary description displayed between the title and body.thread_identifier- Identifier used to group related notifications in Notification Center.