Search code examples
webpush-notificationnotificationswebapi

How does discourse/stackexchange do dynamic notifications


When someone replies, you get sent a dynamic notification:

However, I have never had to allow notifications:

So I figured they (discuss/stackexchange) can't be using the Notifications API or the Push API. But I assume they aren't doing something as primitive as polling.

So how do modern sites do this without having you opt in to a chrome popup?


Solution

  • Maybe Sever-sent events or Web sockets