html - Facebook 通知如何在 Android 手机的 Google Chrome 上运行

标签 html google-chrome notifications

我已经构建了一个使用浏览器通知的 Web 应用程序,无论如何,当我关闭或将 chrome 置于后台时,我没有收到任何通知。

我想知道 Facebook 如何在 Google Chrome 上推送通知,即使 Facebook.com 关闭或 chrome 在后台运行,我几乎立即收到 Facebook 通知。

我希望我的网络应用程序具有相同的功能,欢迎任何建议。

问候。

最佳答案

不幸的是,这个问题没有简短的答案,但我会告诉您应该在哪里寻找答案。

Push API

Notifications API

Google Dev - Your First Push Notifications Web App

关于html - Facebook 通知如何在 Android 手机的 Google Chrome 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36252002/

相关文章:

html - CSS:表格中每一行的水平滚动

google-chrome - 某些站点的响应 header 中的 "view source"如何丢失

jquery - Google Chrome viewport-anchored expand direction with flexbox

html - 使用 Chrome 防止水平触摸板在 macbook 上滚动?

javascript - 在 JavaScript 中在给定日期时间执行代码的最佳方式

java - HeadsUp 的通知持续时间

html - 当浏览器尺寸改变时,如何使网站改变其图像/文本布局?

javascript - Angular JS : "Select All" options of "multi-select select box"

html - 光标和输出没有相同的颜色 css

android - 如何在应用程序关闭时重新启动服务?