Deprecated
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Avoid using it and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
The endpoint read-only property of the PushSubscription
interface returns a DOMString
containing the subscription ID associated with the push subscription.
Syntax
var subId = pushSubscription.subscriptionId;
Specifications
Specification | Status | Comment |
---|---|---|
Push API | Working Draft | Initial definition |
Browser Compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | 42.0[1] | 46 (46)[2] | ? | ? | ? |
Feature | Android | Android Webview | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|
Basic support | No support | No support | 48.0 (48)[3] | (Yes) | ? | ? | ? | 42.0[1] |
- [1] In Chrome 45.0
subscriptionId
has been removed from thePushSubscription
interface. Its value is now part ofPushSubscription.endpoint
. - [2] Push (and Service Workers) have been disabled in the Firefox 45 and 52 Extended Support Releases (ESR.)
- [3] Push has been enabled by default on Firefox for Android version 48.