我们的志愿者还没有将这篇文章翻译为 中文 (简体)。加入我们帮助完成翻译!
您也可以阅读此文章的English (US)版。
The pushsubscriptionchange
event is fired to indicate that A PushSubscription has expired.
General info
- Specification
- Push API
- Interface
PushEvent
- Bubbles
- No
- Cancelable
- No
- Target
- Service worker
- Default Action
- None
Properties
- None.
Examples
self.addEventListener('pushsubscriptionchange', function() {
// do something, usually resubscribe to push and
// send the new subscription details back to the
// server via XHR or Fetch
});