Live data from Hacker News

Push.js – A minimalist JavaScript library for desktop notifications

github.com

11–20 of 40 posts

Re: Push.js – A minimalist JavaScript library for desktop notifications

#13
post #5

I hate to be pedantic but these are not push notifications. Those are the ones that can be sent even if the webapp is closed, for example, this Chrome demo: https://developers.google.com/web/fundamentals/getting-start...

Ok we replaced 'push' with 'desktop' which is what the Github page says.

Re: Push.js – A minimalist JavaScript library for desktop notifications

#14
post #5

I hate to be pedantic but these are not push notifications. Those are the ones that can be sent even if the webapp is closed, for example, this Chrome demo: https://developers.google.com/web/fundamentals/getting-start...

Sort of. There's nothing stopping you from using script inside a Service Worker to send those notifications. Calling them push notification is troublesome as the Web Push API and Notification API are actually two entirely separate things.

Re: Push.js – A minimalist JavaScript library for desktop notifications

#19

Is there a similar library for mobile?

Does mobile have a comparable feature? Native Push Notifications are an entirely different beast; afaik, there is no way to have browser type notifications like this.

Re: Push.js – A minimalist JavaScript library for desktop notifications

#20

Is there a similar library for mobile?

Does mobile have a comparable feature? Native Push Notifications are an entirely different beast; afaik, there is no way to have browser type notifications like this.

Chrome on Android does support push notifications from the browser. Facebook makes use of this and you can actually get push notifications from Facebook without using their app. Facebook requests in the Chrome browser to use notifications and then you can receive them without even having the browser app open.
Post reply on HN