Integrating registered users notifications+avatar into static website

Hello everyone,

I have a website and I use Embedded discourse comments. Rather than using the standard method below of creating the thread when a user visits the webpage. I use the api to create the threads and attach the thread id in the webpage before it’s published. This all works very well.

What I’m curious about is integrating notifications from discourse, into the main website’s header. So users can browse the static webpages and see a little notification by their avatar when someone on the forum has engaged with them.

I have searched for this kind of implementation and didn’t find much, maybe I didn’t know what I was looking for.

1 Like

I have done this, but the main website was dynamic and there was SSO between the two. So it was easy for the backend code to fire a request for the notifications API during page load, and CORS was not a problem.

1 Like