Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 765969 of PushRegistrationManager

  • Revision slug: Web/API/PushRegistrationManager
  • Revision title: PushRegistrationManager
  • Revision id: 765969
  • Created:
  • Creator: jpmedley
  • Is current revision? No
  • Comment

Revision Content

{{SeeCompatTable}}{{APIRef("Service Workers API")}}

Returns an interface to register or unregister a push registration, get an active registration, or check the permission status of the registration.

Methods

{{domxref("PushRegistrationManager.register()")}}
Returns a promise that resolves to a {{domxref("PushRegistration")}} with details of a new registration.
{{domxref("PushRegistrationManager.unregister()")}}
Returns a promise that resolves to a {{domxref("PushRegistration")}} with details of the unregistered registration.
{{domxref("PushRegistrationManager.getRegistration()")}}
Def
{{domxref("PushRegistrationManager.hasPermission()")}}
Def

Example

//

Specifications

text

Browser Compatibility

text

Revision Source

<p>{{SeeCompatTable}}{{APIRef("Service Workers API")}}</p>

<p>Returns an interface to register or unregister a push registration, get&nbsp;an active registration, or check the permission status of the registration.</p>

<h2 id="Methods">Methods</h2>

<dl>
 <dt>{{domxref("PushRegistrationManager.register()")}}</dt>
 <dd>Returns a promise that resolves to a {{domxref("PushRegistration")}} with details of a new registration.</dd>
 <dt>{{domxref("PushRegistrationManager.unregister()")}}</dt>
 <dd>Returns a promise that resolves to a&nbsp;{{domxref("PushRegistration")}} with details of the unregistered registration.</dd>
 <dt>{{domxref("PushRegistrationManager.getRegistration()")}}</dt>
 <dd>Def</dd>
 <dt>{{domxref("PushRegistrationManager.hasPermission()")}}</dt>
 <dd>Def</dd>
 <dt>
 <h2 id="Example">Example</h2>

 <pre>
//</pre>

 <h2 id="Specifications">Specifications</h2>

 <p>text</p>

 <h2 id="Browser_Compatibility">Browser Compatibility</h2>

 <p>text</p>
 </dt>
</dl>
Revert to this revision