N
Novu13mo ago
rajat

Get messageId(s) for recently triggered notification

I have a use case where I want to occasionally clear notifications in my application--to do so I need the messageIDs. Is there a way that upon triggering an in-app notification I can obtain a list of subscriber IDs and the corresponding message IDs for the notification that was just triggered?
3 Replies
Pawan Jain
Pawan Jain13mo ago
Hi @rajat5885 Are you using custom notification center or novu pre built react component?
rajat
rajat13mo ago
pre-built react component but is this possible with either?
Pawan Jain
Pawan Jain13mo ago
If you build custom notification center, there useNotifications hook return notifications array Each item has message id