这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
选项
只读特性在
PushSubscription
interface is an object containing containing the options used to create the subscription.
var options = PushSubscription.options
An read-only options object containing the following values:
userVisibleOnly
: A boolean, indicating that the returned push subscription will only be used for messages whose effect is made visible to the user.
applicationServerKey
: A public key your push server will use to send messages to client apps via a push server. This value is part of a signing key pair generated by your application server, and usable with elliptic curve digital signature (ECDSA), over the P-256 curve.
| 规范 | 状态 | 注释 |
|---|---|---|
|
Push API
The definition of 'options' in that specification. |
工作草案 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
选项
|
Chrome 42 | Edge 16 |
Firefox
44
注意事项
|
IE 不支持 No | Opera 29 | Safari 不支持 No | WebView Android 不支持 No | Chrome Android 42 | Firefox Android 48 | Opera Android 29 | Safari iOS 不支持 No | Samsung Internet Android 4.0 |
完整支持
不支持
见实现注意事项。