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 892341 of PushRegistrationManager

  • Revision slug: Web/API/PushRegistrationManager
  • Revision title: PushRegistrationManager
  • Revision id: 892341
  • Created:
  • Creator: Sebastianz
  • Is current revision? Yes
  • Comment Fixed page formatting to allow the compat data scraper to parse the page

Revision Content

{{deprecated_header}}{{APIRef("Push API")}}

Returns an interface to register or unregister a push registration, get an active registration, or check the permission status of the registration. This interface has been superceded by {{domxref("PushManager")}}.

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()")}}
Returns a promise that resolves the {{domxref("PushRegistration")}} associated with the current webapp.
{{domxref("PushRegistrationManager.hasPermission()")}}
Returns a promise that resolves to the {{domxref("PushPermissionStatus")}} of the requesting webapp.

Specifications

Specification Status Comment
{{SpecName("Push API", "#idl-def-PushRegistrationManager", "PushRegistrationManager")}} {{Spec2("Push API")}} Initial definition

Browser Compatibility

{{CompatibilityTable}}
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{CompatChrome(42.0)}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
Feature Android Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatChrome(42.0)}}

Revision Source

<div>{{deprecated_header}}{{APIRef("Push API")}}</div>

<p>Returns an interface to register or unregister a push registration, get an active registration, or check the permission status of the registration. This interface has been superceded by {{domxref("PushManager")}}.</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 {{domxref("PushRegistration")}} with details of the unregistered registration.</dd>
 <dt>{{domxref("PushRegistrationManager.getRegistration()")}}</dt>
 <dd>Returns a promise that resolves the {{domxref("PushRegistration")}} associated with the current webapp.</dd>
 <dt>{{domxref("PushRegistrationManager.hasPermission()")}}</dt>
 <dd>Returns a promise that resolves to the {{domxref("PushPermissionStatus")}} of the requesting webapp.</dd>
</dl>

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

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName("Push API", "#idl-def-PushRegistrationManager", "PushRegistrationManager")}}</td>
   <td>{{Spec2("Push API")}}</td>
   <td>Initial definition</td>
  </tr>
 </tbody>
</table>

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

<div>{{CompatibilityTable}}</div>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatChrome(42.0)}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>Firefox OS</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
   <th>Chrome for Android</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatChrome(42.0)}}</td>
  </tr>
 </tbody>
</table>
</div>
Revert to this revision