Navigator.push

  • Revision slug: Web/API/Navigator.push
  • Revision title: Navigator.push
  • Revision id: 481699
  • Created:
  • Creator: mnoorenberghe
  • Is current revision? No
  • Comment remove duplicated warning

Revision Content

{{ apiref("Navigator") }}{{non-standard_header}}

{{ B2GOnlyHeader2('installed') }}

Summary

The Navigator.push read-only property is a {{domxref("PushManager")}} object providing a way to receive notifications from third party servers. These are real-time notifications provided by external services directly to installed apps. This implements the SimplePush API that does not require sending real data on those notifications. Also, you can see this documentation for additional details, a guide to using the API, and sample code.

Syntax

var push = window.navigator.push;

Value

navigator.push is a {{domxref("PushManager")}} object.

Specifications

{{page("/en-US/docs/Web/API/PushManager","Specifications")}}

Browser compatibility

{{page("/en-US/docs/Web/API/PushManager","Browser_compatibility")}}

See also

Revision Source

<p>{{ apiref("Navigator") }}{{non-standard_header}}</p>
<p><span style="line-height: 1.572;">{{ B2GOnlyHeader2('installed') }}</span></p>
<h2 id="Summary">Summary</h2>
<p>The <code>Navigator.push</code> read-only property is a {{domxref("PushManager")}} object providing a way to receive notifications from third party servers. These are real-time notifications provided by external services directly to installed apps. This implements the SimplePush API that does not require sending real data on those notifications. Also, you can see this documentation for additional details, a guide to using the API, and sample code.</p>
<h2 id="Syntax" name="Syntax">Syntax</h2>
<pre>
var push = window.navigator.push;
</pre>
<h2 id="Value">Value</h2>
<p><code>navigator.push</code> is a {{domxref("PushManager")}} object.</p>
<h2 id="Specifications">Specifications</h2>
<p>{{page("/en-US/docs/Web/API/PushManager","Specifications")}}</p>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{page("/en-US/docs/Web/API/PushManager","Browser_compatibility")}}</p>
<h2 id="See_also">See also</h2>
<ul>
  <li>{{domxref("PushManager")}}</li>
  <li><a href="https://github.com/frsela/pushJSlibrary" title="https://github.com/frsela/pushJSlibrary">pushJSLibrary, a push shim for browsers that do not implement the API</a></li>
</ul>
Revert to this revision