How to create Javascript/Chrome notifications that are shown over fullscreen applications

浪尽此生 提交于 2019-12-07 16:25:10

问题


I have a web application (HTML5, CSS3, JQuery) that displays notifications using both methods: a growl-like jquery plugin (javascript+html), or using the Chrome notification API (only if you are using Chrome).

What I want is to create a javascript growl-like notification that is shown over all the other windows in the screen, even if you have another application focused in fullscreen mode.

I think that this is not possible with javascript because probably it is restricted to the browser window, but maybe with the Chrome notification API it could be done (this notifications popup over other applications, if they are not in fullscreen mode).

Recently Chrome updated its browser so that the notifications are not shown if you have an application in fullscreen. In general it is a good update but if you want to show the notification even if you are in a fullscreen app, how do you do that? Can the final user of the web application change the behaviour of this notifications and make them appear always?

PD: if there is another browser technology that allows this kind of notifications, please tell me.


回答1:


As far as I am aware this is not possible, certainly not as any sort of cross-browser solution.



来源:https://stackoverflow.com/questions/16893034/how-to-create-javascript-chrome-notifications-that-are-shown-over-fullscreen-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!