Liking cljdoc? Tell your friends :D

web.service-workers.PushManager

The PushManager interface of the Push API provides a way to receive from third-party servers as well as request URLs for push notifications.

The PushManager interface of the Push API provides a way to receive
from third-party servers as well as request URLs for push notifications.
raw docstring

get-subscriptioncljs

(get-subscription this & args)

Method.

The PushManager.getSubscription() method of the web.service-workers.PushManager retrieves an existing push subscription.

​PushManager.getSubscription().then(function(pushSubscription) { ... } );

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushManager/getSubscription

Method.

The PushManager.getSubscription() method of the `web.service-workers.PushManager`
retrieves an existing push subscription.

`​PushManager.getSubscription().then(function(pushSubscription) { ... } );`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushManager/getSubscription`
sourceraw docstring

has-permissioncljs

(has-permission this & args)

Method.

The PushManager.hasPermission() method of the web.service-workers.PushManager returns a js.Promise that resolves to the PushPermissionStatus the requesting webapp, which will be one of granted, denied, default.

​PushManager.hasPermission().then(function(pushPermissionStatus) { ... } );

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushManager/hasPermission

Method.

The PushManager.hasPermission() method of the `web.service-workers.PushManager`
returns a `js.Promise` that resolves to the PushPermissionStatus
the requesting webapp, which will be one of granted, denied,
default.

`​PushManager.hasPermission().then(function(pushPermissionStatus) { ... } );`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushManager/hasPermission`
sourceraw docstring

permission-statecljs

(permission-state this options)

Method.

The permissionState() method of the web.service-workers.PushManager returns a js.Promise that resolves to a web.dom.DOMString the permission state of the push manager. Possible values are 'denied', or 'granted'.

PushManager.permissionState(options).then(function(PushMessagingState) { ... });

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushManager/permissionState

Method.

The permissionState() method of the `web.service-workers.PushManager`
returns a `js.Promise` that resolves to a `web.dom.DOMString`
the permission state of the push manager. Possible values are
'denied', or 'granted'.

`PushManager.permissionState(options).then(function(PushMessagingState) { ... });`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushManager/permissionState`
sourceraw docstring

registercljs

(register this)

Method.

The register method is used to ask the system to request a new for notifications. This method has been superceded by PushManager.subscribe().

var request = navigator.push.register();

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushManager/register

Method.

The register method is used to ask the system to request a new
for notifications. This method has been superceded by `PushManager.subscribe()`.

`var request = navigator.push.register();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushManager/register`
sourceraw docstring

registrationscljs

(registrations this)

Method.

The registrations method is used to ask the system about existing endpoint registrations.

var request = navigator.push.registrations();

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushManager/registrations

Method.

The registrations method is used to ask the system about existing
endpoint registrations.

`var request = navigator.push.registrations();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushManager/registrations`
sourceraw docstring

set-supported-content-encodings!cljs

(set-supported-content-encodings! this val)

Property.

The supportedContentEncodings read-only property of the web.service-workers.PushManager returns an array of supported content codings that can be used encrypt the payload of a push message.

var encodings[] = PushManager.supportedContentEncodings

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushManager/supportedContentEncodings

Property.

The supportedContentEncodings read-only property of the `web.service-workers.PushManager`
returns an array of supported content codings that can be used
encrypt the payload of a push message.

`var encodings[] = PushManager.supportedContentEncodings`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushManager/supportedContentEncodings`
sourceraw docstring

subscribecljs

(subscribe this options)

Method.

The subscribe() method of the web.service-workers.PushManager subscribes to a push service.

​PushManager.subscribe(options).then(function(pushSubscription) { ... } );

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushManager/subscribe

Method.

The subscribe() method of the `web.service-workers.PushManager`
subscribes to a push service.

`​PushManager.subscribe(options).then(function(pushSubscription) { ... } );`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushManager/subscribe`
sourceraw docstring

supported-content-encodingscljs

(supported-content-encodings this)

Property.

The supportedContentEncodings read-only property of the web.service-workers.PushManager returns an array of supported content codings that can be used encrypt the payload of a push message.

var encodings[] = PushManager.supportedContentEncodings

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushManager/supportedContentEncodings

Property.

The supportedContentEncodings read-only property of the `web.service-workers.PushManager`
returns an array of supported content codings that can be used
encrypt the payload of a push message.

`var encodings[] = PushManager.supportedContentEncodings`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushManager/supportedContentEncodings`
sourceraw docstring

unregistercljs

(unregister this push-endpoint)

Method.

The unregister() method was used to ask the system to unregister delete the specified endpoint. In the updated API, a subscription can be unregistered via the PushSubscription.unsubscribe()

var request = navigator.push.unregister(pushEndpoint);

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushManager/unregister

Method.

The unregister() method was used to ask the system to unregister
delete the specified endpoint. In the updated API, a subscription
can be unregistered via the `PushSubscription.unsubscribe()`

`var request = navigator.push.unregister(pushEndpoint);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushManager/unregister`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close