N
Novu2y 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 Jain2y ago
Hi @rajat5885 Are you using custom notification center or novu pre built react component?
rajat
rajatOP2y ago
pre-built react component but is this possible with either?
Pawan Jain
Pawan Jain2y ago
If you build custom notification center, there useNotifications hook return notifications array Each item has message id
Want results from more Discord servers?
Add your server