The current public Flutter SDK source reviewed for this page exposes push-notification registration and notification-settings APIs, but not notification tray item/status APIs.
SDK Surfaces
Data Model
Notification tray items are returned with actor, target, reference, action, text, and seen-state data. Property names differ slightly by platform.
Tray seen status is a separate object with the latest tray occurrence timestamp, latest tray seen timestamp, and a derived
isSeen value.
Typical Flow
- Observe tray seen status to decide whether to show a notification indicator.
- Query tray items when the user opens the notification tray.
- Mark the tray as seen after the user views the tray.
- Mark individual items as seen when the user views or opens a specific item.
- Dispose observers or subscriptions when the owning screen is destroyed.
Related Topics
Notification Items
Query tray items and mark individual items as seen
Tray Status
Observe and update tray-level seen status
Event Fields
Reference action and category values returned on tray items