These types of notifications are very interesting for different types of web applications. You could create an online chat, like Slack , and use the notifications to notify the user that they have received a private message or that they have been notified, or you could use them inside your ToDo List application, like Asana, to remind the user that a certain task is approaching its deadline.
Whatever functionality your imagination can dream up, with the Notifications API you will be able to make it happen .
and know how to manage this technology, you have to start with small experiments.
Precisely for this reason, the exercise we will do today is really simple and will allow cambodia phone number data us to get our hands dirty with another component of the new Web API: the Page Visibility API .
Their job is to listen and understand when the user is paying attention to a different page . With this feature, you can create video players that pause playback when the user changes tabs, or force people to wait a specific amount of time on your pages before sharing more material (as happens on many file-sharing sites).
The best thing of all is that despite the fact that these are very young APIs, their compatibility with modern browsers is very high: