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?
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:
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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?
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: