WebAPI/SimplePush: Difference between revisions

Jump to navigation Jump to search
(Remove mention of version from web facing API)
Line 133: Line 133:
   
   
   <i>// registers to receive push notifications for a given topic
   <i>// registers to receive push notifications for a given topic
   // DOMRequest.result is a PushRegistration in case of success</i>
   // DOMRequest.result is an Endpoint as a string</i>
   DOMRequest register();
   DOMRequest register();
   
   
   <i>// registers to stop receiving push notifications for a given topic  
   <i>// registers to stop receiving push notifications for a given topic  
   // DOMRequest.result is the endpoint that was unregistered on success.</i>
   // DOMRequest.result is the endpoint that was unregistered on success, as a string</i>
   DOMRequest unregister(DOMString pushEndpoint);
   DOMRequest unregister(DOMString pushEndpoint);
   
   
   <i>// the list of all push registrations for this app
   <i>// the list of all push registrations for this app
   // DOMRequest.result is an Array of EndPoints as DOMStrings</i>
   // DOMRequest.result is an Array of endpoints as DOMStrings</i>
   DOMRequest registrations();
   DOMRequest registrations();
  };
  };
Confirmed users
93

edits

Navigation menu