This post was originally published on attacomsian.com/blog.
JavaScript Notifications API enables web pages to display messages to users on thei...
For further actions, you may consider blocking this person and/or reporting abuse
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:
I will have to add a note here. Notifications work only on https protocol :)
Yes, you are right :) I updated the post.
Thanks for the post. Will definitely try this out.
Thanks, this´s great
Thank you very much <3
Thanks !
Atta, thanks for sharing this. I bookmarked this article because I have no doubt I'll need to do this in the future.