Hacker News new | past | comments | ask | show | jobs | submit login

For anyone who would like a demo and real-world example, my company put together a website to let you subscribe to Web Push notifications for trending Hacker News stories: https://hackernews.onesignal.com/



> For anyone who would like a demo and real-world example, my company put together a website to let you subscribe to Web Push notifications for trending Hacker News stories: https://hackernews.onesignal.com/

For some reason I only get this working on Firefox Mobile (not on my Windows 10 desktop), but definitely cool.

I can definitely see how this can/will subplant shallow webview-wrapping apps in the long run.


And if you're into Indie music, use this http://www.indiestumblr.com/


so chrome supports the notifications but only if you are currently on the page? is that right?


No. Chrome has supported notifications even when you have no browser windows open since Chrome 42, released mid 2015. https://developers.google.com/web/fundamentals/getting-start...


Is this page out of date or are those two other features related to the push api that arent supported by chrome unrelated to what firefox just released? https://developer.mozilla.org/en-US/docs/Web/API/Push_API


It's not out of date. Chrome does not yet support Message Payloads in the public release, here's their description for it on chromestatus.com: https://www.chromestatus.com/feature/5746279325892608

The workaround for now is to have the service worker fetch the payload from an API endpoint that the sender implements themselves.


>Chrome has supported notifications even when you have no browser windows open

Chrome is literally botnet


Thanks.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: