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.

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.