Currently, there are these issues with browser notifications:
Although it seems to ask the edge browser to allow notifications, the browser notifications in edge does not appear. Investigate with other computers.
There is a check for the document to be visible, is document.hidden, but this does not involve checking whether the browser is in focus in the user desktop or not. Investigate about this possibility in JavaScript.
Currently, there are these issues with browser notifications:
document.hidden
, but this does not involve checking whether the browser is in focus in the user desktop or not. Investigate about this possibility in JavaScript.