DEV Community

Discussion on: How to show desktop notifications using JavaScript

Collapse
 
anwar_nairi profile image
Anwar

I am very interested in adding native notification to my web app. For the moment I use in app notification, kinda looks olddie for me...

Do you know which strategy I could use server side? How a client can be aware of new notifications?

Collapse
 
attacomsian profile image
Atta

You need to implement web push notifications if you want to send notifications from the server-side. It is a bit complex usage of Notification API.

Last year, I did something like this. Here are the links to source code: