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

push

Nossos voluntários ainda não traduziram este artigo para o Português (do Brasil) . Junte-se a nós e ajude a fazer o trabalho!

The push event is fired to indicate that a Service Worker has received a push message.

General info

Specification
Push API
Interface
PushEvent
Bubbles
No
Cancelable
No
Target
Service worker
Default Action
None

Properties

data
Provides access to the data payload of a push message, contained in a PushMessageData object.

Examples

self.addEventListener('push', function(event) {
  var obj = event.data.json();
  port.postMessage(obj);
});

pushsubscriptionchange

See also

Etiquetas do documento e colaboradores

Etiquetas: 
 Colaboradores desta página: jrconlin, chrisdavidmills
 Última atualização por: jrconlin,