Skip to main content
Notification tray items are paginated notification records for the signed-in user. Use this API to render an in-app notification tray and then mark individual items as seen when the user opens or views them.

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 the AmityNotificationTrayItem model 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, iOS notificationId, and Android getId().
  • Dispose live collection subscriptions or notification tokens when the notification tray screen is destroyed.

Notification Tray Status

Manage overall notification tray seen status.

Notification Events

Reference action and category values returned on tray items.