The Notification Tray SDK Feature enhances user engagement and connectivity within your application by providing comprehensive notification management capabilities. This feature allows users to receive notifications based on interactions from others, ensuring they stay informed and connected to their community. Designed for seamless integration, the Notification Tray SDK ensures real-time updates, improved user retention, and a more engaging social experience.

Key Features

Real-time Notifications

Keep users engaged with instant notifications for posts, reactions, comments, and replies

Flexible Integration

Easy-to-use SDK methods for seamless notification tray integration

Granular Control

Fine-grained read tracking with both global and per-item seen states

Cross-platform Support

Consistent notification experience across iOS, Android, and Web platforms

Notification Types & Use Cases

Real-World Implementation Examples

Notification Scenarios

Community Post Scenario
  • User posts in “Photography Tips” community
  • All community members receive notifications
  • Notification includes post preview and author info
  • Users can react directly from notification
Engagement Chain
  1. Initial post notification: “New post in Photography Tips”
  2. Reaction notification: “5 people liked your post”
  3. Comment notification: “3 new comments on your post”
  4. Reply notification: “Someone replied to your comment”

Data Models

Notification Tray Item

PropertyTypeDescription
notificationIdStringUnique identifier of notification item
lastSeenAtDatetimeTimestamp when the notification was last seen
lastOccurredAtDatetimeTimestamp when the notification last occurred
actorsList<AmityNotificationActors>Data of users that acted on this notification item
actorCountIntNumber of users that acted on this notification item
actionTypeStringType of action that triggered this notification
trayItemCategoryStringCategory for when action is either “mention” or “reply”
targetIdStringObject ID of the target
targetTypeStringType of target for this action
referenceIdStringOptional ObjectId of the reference
referenceTypeStringType of reference for this action
parentIdStringOptional ObjectId of parent
textStringReady to render text without any templating
templatedTextStringReady to render text with templating for client interpretation
isSeenBooleanWhether this notification item has been seen
isRecentBooleanWhether this notification item is recent or older
usersList<AmityUser>List of users that acted on this notification

Notification Tray Seen Status

Troubleshooting

Common Issues