Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm betting this is more about boot2gecko than Firefox. Maybe not a lot more, but it's certainly necessary for boot2gecko to have any feasibility.

Does anyone know why they're pushing this instead of plain old Server Sent Events (something w3c is already working on for servers to push to browsers)?



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.)


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.


Does anyone know why they're pushing this instead of plain old Server Sent Events (something w3c is already working on for servers to push to browsers)?

They're very different notifications. SSE is only useful if the user happens to have the website open. This new proposal is a replacement for emails - it lets you send asynchronous notifications to the user that he may receive even if he's not on your website and even if he was offline for a while.




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

Search: