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. Do not use it in old or new projects. Pages or Web apps using it may break at any time.
The endpoint read-only property of the PushSubscription
interface returns a DOMString
containing the subscription ID associated with the push subscription.
SyntaxEdit
var subId = pushSubscription.subscriptionId;
SpecificationsEdit
Specification | Status | Comment |
---|---|---|
Push API | Working Draft | Initial definition |
Browser CompatibilityEdit
- [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 Extended Support Release (ESR.)
- [3] Push has been enabled by default on Firefox for Android version 48.