Push Messaging is the well-known re-engagement mechanism from the mobile platforms. It allows the authorized web applications to subscribe the user for the remotely sent messages that can trigger displaying a notification to the subscriber even if the web application is not currently focused or even opened in the browser. The message can convey encrypted payload and can request displaying custom action buttons.
The Web Platform standard for Push Messages, Push API, utilizes the powerful concept of Service Workers, code units installable by the web app that execute separately from the app itself. Push API also requires HTTPS installation. It is currently supported in Firefox on the desktop and in Google Chrome (both Android and desktop, with GCM setup required).
There is also a non-standard proprietary solution available for OS X in Safari, based on Apple's own notification service, with the workflow similar to standard Push API, available via
- Subscribes a user for the remote Push Messages. Returns a
- Returns a
Promiseindicating current Push Messages subscription state.
- Displays notification outside of the browser tab area.
- An event fired when remote push message has been received, available within Service Worker instance.