Group in-app notifications

Is it possible to group i- app notifications to not spam the inbox? We have different chat rooms inside of our app that users can subscribe to and we only want to deliver 1 in-app and email notification per chat room when there are unread messages for a subscriber. If subscriber already has an unread notification for that chat room we do not want to send further in-app or email notifications. We use @novu/framwork, what strategy could I implement for this?
5 Replies
Novu_Bot
Novu_Bot5mo ago
@Axel Dickson, you just advanced to level 1!
Pawan Jain
Pawan Jain5mo ago
@Axel Dickson Did you get chance to checkout digest step in framework https://docs.novu.co/framework/digest
Axel Dickson
Axel DicksonOP5mo ago
Thanks @Pawan Jain, yes I've read the digest documentation. Are you suggesting we should use a lookback for the in-app step?
Pawan Jain
Pawan Jain5mo ago
Can you share more info on "lookback"? Using digest, you can use events objects to customize the in-app notification content
Axel Dickson
Axel DicksonOP5mo ago
Our use case is that when a user sends a message inside a chat room, we'd like to notify all members of that chat room by: A) Sending an in-app notification. This notification should only be sent if the user has no unread notifications for that specific chat room. B) Send an email notification to the user if A sends an in-app notification The Inbox should only display max 1 notification saying "You have unread messages in chat room A". But there can also be a "You have unread messages in chat room B". Digest could help me to look back certain time to see if there was an in-app delivered already for a chat room - however it will then stack upp in-coming events and trigger the in-app when the past event falls out of the window

Did you find this page helpful?