How we built it

PushSubscription.options

An "options" attribute is added to PushSubscription objects that the PushManager.subscribe(...) and getSubscription() promises resolve to. It reflects the options passed in when subscribing. This allows web developers to see what applicationServerKey each PushSubscription is associated with, and hence what key their server will need to present when sending messages. Previously web developers with more than one applicationServerKey had to keep track of this separately (e.g. in IndexedDB).

Documentation

Specification

Working draft or equivalent

Status in Chromium

Enabled by default (launch bug) in:

  • Chrome for desktop release 54
  • Opera release 41
  • Opera for Android release 41

Consensus & Standardization

  • Shipped
  • No public signals
  • No public signals
  • No signals

Owner

Last updated on 2016-09-09