【发布时间】:2016-08-04 18:24:52
【问题描述】:
According to the spec,pushsubscriptionchange 事件表示“推送订阅已失效,或即将失效”。处理此事件的最佳做法是什么?
【问题讨论】:
标签: web-push progressive-web-apps
According to the spec,pushsubscriptionchange 事件表示“推送订阅已失效,或即将失效”。处理此事件的最佳做法是什么?
【问题讨论】:
标签: web-push progressive-web-apps
postMessage() 触发客户重新订阅。【讨论】:
您可以在此处找到有关处理 pushsubscriptionchange 事件的完整详细说明,其中包含您必须处理的一些陷阱。喜欢:
PushSubscriptionChangeEvent 始终为空。如果您想在服务器中替换它,您将无法使用 oldSubscription。How to handle WebPush API PushSubscriptionChange event in modern browsers
【讨论】: