Is it possible to display discourse notifications on another site?

My site spans a few platforms.

I know users can have live browser notifications, and emails.

I’d also like to pull the notifications bubble that appears on discourse user profile and add it to the menu on my other platforms, for continuity.

Just that they have a notification, and ideally how many. Has anyone heard of that being done?

3 Likes

Yeah, this is totally doable.

I did back in 2015 using a direct database connection on the Discourse and querying the notifications table.

You can also use the API.

It’s just a matter of picking what’s best for the underlying tech of the other site.

6 Likes

We did this and we can pull the unread notification count from Discourse to our other site without problems.
The issue we are facing is that now the numbers for the bubbles are not the same on the other site and discourse.
For the blue bubbles (notifications) once a user opens the drop down in discourse the counter is reset to 0, even if he doesnt open the notifications.
On our other website however the notifications are still counted as unread. So it might still display X unread notifications on the other site, while on Discourse the counter is reset to 0.

This is quite confusing for users. Is there any way to pull not the number of unread notifications, but the number displayed in the blue bubble on Discourse (which gets set to 0 when a user opens the notification drop down)?