Parameters
Query Items
Query notification tray items for the signed-in user, keeping the pagination handle while the tray screen is active.Mark an Item Seen
Mark an individual notification item seen after the user opens or views that item.Data Freshness
The notification tray is not real-time. Tray items are served from a short-lived server-side cache. A newly triggered notification is not guaranteed to appear the moment it happens — it becomes visible only after the server’s cache refreshes. Until then, a query returns the previously cached result. Treat the tray as eventually consistent, not live, and do not rely on a new item (or an updated count) reflecting immediately after the triggering action.
Notes
- TypeScript marks one or more items by ID through
markItemsSeen. - iOS and Android expose
markSeen()on theAmityNotificationTrayItemmodel returned by the tray item query. - Use the platform-specific item ID field when routing from a tray item to a target screen: TypeScript
_id, iOSnotificationId, and AndroidgetId(). - Dispose live collection subscriptions or notification tokens when the notification tray screen is destroyed.
Related Topics
Notification Tray Status
Manage overall notification tray seen status.
Notification Events
Reference action and category values returned on tray items.