即使Chrome关闭,有没有办法显示桌面通知? [英] Is there a way to show desktop notifications even if Chrome closed?

查看:265
本文介绍了即使Chrome关闭,有没有办法显示桌面通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Google Chrome扩展程序,我想知道即使Chrome已关闭,是否仍然可以显示桌面通知,可能是某种后台进程或服务?请建议,并指导我,如果这是不可能的。谢谢。

I'm developing a Google Chrome Extenstion, I wonder if there is anyway to show desktop notifications even if Chrome is closed, maybe some sort of background process or service? Kindly advice and guide me if it is not possible also. Thanks.

推荐答案

如果您请求background权限,即使在Chrome窗口关闭的情况下,您的扩展程序的后台页面也能显示通知。

If you request a "background" permission your extension's background page will be able to show notifications even with Chrome windows closed.


当任何已安装的托管应用程序,打包的应用程序或扩展程序具有后台权限时,Chrome会在用户启动Chrome之前立即运行(隐身)。 背景权限也使Chrome继续运行(即使在最后一个窗口关闭后),直到用户明确退出Chrome。

When any installed hosted app, packaged app, or extension has "background" permission, Chrome runs (invisibly) as soon as the user logs into their computer—before the user launches Chrome. The "background" permission also makes Chrome continue running (even after its last window is closed) until the user explicitly quits Chrome.

这篇关于即使Chrome关闭,有没有办法显示桌面通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆