Provides web-apps with scripted access to server-sent notifications.
Push API is enabled by default in EdgeHTML 17 released today (30/04/2018)
Phyo Arkar commented
Push api , along with Server Sent Events are a must for RealTime Web. It makes things a lot more simple vs Websocket.
Nikola Nikolic commented
This is a MUST for modern browser!
scott schmitz commented
would like to see
Simeon Vincent commented
Dan, there's some discussion of the differences between the APIs here: https://github.com/w3c/push-api/issues/104#issuecomment-69745798
Simply put, Push API fills a different role than SSE. In addition to Vivian's comment, it seems the push API builds on Service Workers and takes advantage of the OS's native push support. When the browser receives a push notification, it will spin up a service worker that will handle the message. Some additional discussion can be found on Google's Intent to Ship announcement for Push API .
Dan, the browser does not need to be active.
Dan Cunningham commented