3 ms·
> web pages can't send push notifications https://developer.mozilla.org/en-US/docs/Web/API/Push_API https://developer.mozilla.org/en-US/docs/Web/API/Push_API
by sotojuan 10y ago
> web pages can't send push notifications
https://developer.mozilla.org/en-US/docs/Web/API/Push_API https://developer.mozilla.org/en-US/docs/Web/API/Push_API
> web pages can't run in the background
Ok not the same at all, but you can use web workers for background threads:
https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers...
And the above have also been used to produce offline-first applications.
Unfortunately Apple has been bad at supporting these new APIs—ironic considering the last part of your comment. Google has been the best at it.
- freehunter 10y agoI think you're missing my point. It doesn't matter if Firefox supports it, Safari on my iPhone does not. Native apps do support all of these annoying features. Let me give you an example. The official reddit app on my phone asks me maybe two or three times per week "Please enable push notifications". No. I don't want to do that. And I can't seem to get it to stop asking me. But on the website, in my browser, it's never asked me that. Because it can't. It's not allowed to. I'm not talking "is it technically possible from a pure theoretical standpoint", I mean in practice, is it physically possible for a web page on my iPhone to send push notifications and tear up my battery in the background? And I'm pretty sure the answer is "no". And that makes me very happy.
- sotojuan 10y agoI definitely agree with you and did not mean to sound rude—I'm just sad it can be done but Apple and others won't play nice :/ Though to be honest I do prefer apps for most things, but I want the web to at least give apps a challenge.