【发布时间】:2015-08-13 01:41:12
【问题描述】:
看起来推送通知终于可以用于web-apps!不幸的是,这需要对 ServiceWorker 使用 https,而并非所有网站都可能有。
我注意到spec 中提到的一件事:
if r's url's scheme is not one of "http" and "https", then:
Throw a TypeError."
所以我很困惑 - 只要网站包含来自 https 的 serviceworker,它可以是 http 吗?例如,mydomain.com 可能包含来自 https://anotherdomain.com 的 https 服务人员?
另一个标准,web-api simple-push,没有提到需要 https(可能是文档中的遗漏?),以及“Firefox 桌面上的用户体验还没有被绘制出来”。这个文档是过时的,还是真的只有 FirefoxOS 支持推送??
【问题讨论】:
-
这可能是来自 https 的 serviceworker 吗?
标签: html google-chrome firefox-os service-worker web-push