The W3C Push API offers some exciting new functionality for developers to use in web applications: this article provides an introduction to getting Push notifications setup and running, with a simple demo.
The endpoint read-only property of the PushSubscription interface returns a DOMString containing the subscription ID associated with the push subscription.
The Push API gives web applications the ability to receive messages pushed to them from a server, whether or not the web app is in the foreground, or even currently loaded, on a user agent. This lets developers deliver asynchronous notifications and updates to users that opt in, resulting in better engagement with timely new content.
The unregister() method was used to ask the system to unregister and delete the specified endpoint. In the updated API, a subscription is can be unregistered via the PushSubscription.unsubscribe() method.