Hacker News new | ask | show | jobs
by jbalogh 5243 days ago
I think notifications will be useful in all our browsers, not just B2G. I'm targeting Firefox Mobile for the initial release since mobile is where notifications fit in the best.

I don't see notifications supplanting Server Sent Events. SSE gives developers a lot more control over the stream since it's connected directly to your server, and you don't have to bother the users with permission dialogs. You'd use push notifications if the user doesn't have your site open, but otherwise SSE gives you more power.

(I'm working on push notifications.)

1 comments

Cool. :) Thanks for the reply. I had assumed that an "app" made for Firefox or Chrome would be able to register a handle for a Server Sent Event so that apps could be notified or have their state changed via an Action even if the tab isn't open. Somehow I missed that this was that functionality via a new API.

As for B2G, I think I just got excited about it because notifications was the bit I was interested in seeing work out.