Facebook如何在没有标签的情况下发送通知
How does Facebook send notifications without tab
- 转到 Facebook 并允许 HTML5 桌面通知。
- 关闭 Facebook 标签。
- 请别人在 Facebook 上给你写消息。
现在,当 Facebook 网站未打开时,您会看到来自 Facebook 的通知。如何?
Facebook 使用推送通知API:https://www.w3.org/TR/push-api/
更多信息:
他们使用 Push API - https://developer.mozilla.org/en-US/docs/Web/API/Push_API
从那里引用:
The Push API gives web applications the ability to receive messages
pushed to them from a server, whether or not the web app is in the
foreground, or even currently loaded, on a user agent.
- 转到 Facebook 并允许 HTML5 桌面通知。
- 关闭 Facebook 标签。
- 请别人在 Facebook 上给你写消息。
现在,当 Facebook 网站未打开时,您会看到来自 Facebook 的通知。如何?
Facebook 使用推送通知API:https://www.w3.org/TR/push-api/
更多信息:
他们使用 Push API - https://developer.mozilla.org/en-US/docs/Web/API/Push_API 从那里引用:
The Push API gives web applications the ability to receive messages pushed to them from a server, whether or not the web app is in the
foreground, or even currently loaded, on a user agent.