7 ms·
Web Push for Safari
- infocollector 4y agoThis is support for web push notifications in safari it seems. (https://web.dev/push-notifications-overview/ https://web.dev/push-notifications-overview/) - and it plays nice with macs. I guess it is useful if you want to support Safari for your webapp + use push notifications.
- pvg 4y agoBig thread a few days ago, 172 comments https://news.ycombinator.com/item?id=31644424 https://news.ycombinator.com/item?id=31644424
- the_gipsy 4y agoWill it be like on Android with the standards APIs, or is like safari macOS which requires special APIs and a 100$/year account? Because if it's as easy as on Android, then why would anyone bother with apps, if a webapp can do?
- tosh 4y agoSupports Web Standard API, works without Apple Developer Account
- valleyer 4y ago"… today I'm happy to announce that we have added support for Web Push, and this really is Web Push! The same combination of various web standards as implemented in other browsers. We'll go over those standards more later, but… the most important takeaway is that if you've coded your application to web standards, you won't need to make any changes for it to work in Safari." "… no Apple Developer account is required to reach Safari users."
- randyrand 4y ago
- mihaic 4y agoI know I'm a bit tangential, but what are some actually useful examples of push notifications for browsers? Every time I've seen them in action was with spam/clickbait, after someone accidentally subscribed and couldn't remove it.
- tehlike 4y agoI am working on a pwa for android/chrome extension for desktop that would let users know if the price of an item they were watching drops. If you assumed pwa, you can see why they are useful. Also if slack were mobile friendly, i could see notifications being helpful there too
- simion314 4y agoYou could run Slack or Discord in browser instead of an application, then notifications could be used exactly as for the apps.
- thayne 4y agoWhich is what I do in Firefox, which has supported this for a long time.
- swatcoder 4y agoAll the same things they’re useful for in apps (which are also prone to spam/clickbait). Web push is a prerequisite for moving a ton of apps out of app stores and into the platform agnostic thin client model of the web: messaging clients, timers, background tasks, transaction/shipping status updates, trading tools, etc
- scarface74 4y agoYou mean making them worse?
- ben174 4y agoYou mean not installing yet another application and having another icon on my homescreen for every freaking website I visit? And these apps almost have no need to run any native code or do anything a website can't handle in modern day. Yes. I'm all for it. Let's make browsers more capable.
- kgbcia 4y agoWeb push would be great for emails or transit updates, but most of the time there is an app. Also, I don't want to be disturbed at night or work. So I end up blocking everything except messages.
- al_borland 4y agoIf a user only wants notifications, web push might be a good alternative to installing a whole app just for a notification service.
- usrn 4y agoApps suck. iOS is a treadmill and you have to maintain app specific infrastructure to send push notifications with them. It's very expensive (in terms of time) so volunteers don't do it. This pretty much guarantees any apps with push notifications are owned by some kind of largish organization. It's pretty terrible. Hopefully this either moves all of that to the web or forces Apple to deal with the problems with their platform.
- candiddevmike 4y agoWonder if FCM's JS libraries will abstract all of this or if you'll have to write custom code to support Safari...
- nickphx 4y agoWebPush is a browser 'standard', so FCM JS should work barring any browser specific quirks.
- rasengan 4y agoI have been waiting for this since forever. Now decentralized PWA can contend against the AppStore apps. A big win for freedom. Thank you Apple.
- agust 4y agoMore than Apple (which prevented the feature from being available on iOS for 7+ years and still hasn't shipped it) you should probably thank the regulators who are investigating Apple's anti-competitive practices and the web developers who warned about them! This is the result of the pressure of the upcoming regulations around browser engines on iOS and the anticipated resulting competition for Safari.
- scarface74 4y agoSo I can ignore yet another crappy lowest denominator “app”…
- TAKEMYMONEY 4y agoExpectation: seamless push notifications without a dedicated app! Reality: users blindly click "do not allow" push notification dialog the way they already do with browser notification permission dialogs, location access, "allow cookies" banners etc
- notatoad 4y agoLike any permission request, if you ask when the user attempts something that requires it, they'll accept. If you ask when the page loads, they'll (rightly) deny it. Stop asking for permissions before you need them
- nimbleplum40 4y agoGood! I already get too many notifications that I don't want. If an app provides useful notifications, I'll grant permission :)
- usrn 4y agoIf they can't figure out how to use their phone that's not my problem. I just want to be able to use decent chat apps/services again without half the people in the group complaining bout their iPhones.
- deleted 4y ago[deleted]
- taejavu 4y agoDoes anyone know if Safari has to be open to receive the notification?
- jessmartin 4y agoIt does not. They cover it in the article.
- 0xedb 4y agoSeems I found a bug. I can't use the spacebar to pause a video in full screen mode. I tried another video on the developer page and I face the same issue.
- kitsunesoba 4y agoDumb questions about web push: would one see a gradual uptick in resources consumed by webworkers as they accumulate notifications from different sites? Would they keep the antenna/modem on a phone awake constantly? The big advantage of the current centralized model is that it's easier to coalesce notifications and the OS only has to maintain a single connection. Would hate to see my battery take a hit as a result of a move away from that model.
- bwindels 4y agoWeb push notifications are also delivered through APNS, the service worker only gets woken up once there is a notification, it doesn't poll, so that shouldn't be much different from a regular app.
- cal85 4y agoWow. I missed this a few days ago, but it seems like huge news for the web. Am I missing some important caveat or can web developers get excited about this? Apple’s long resistance to allowing ‘web push’ on iOS has held back PWA adoption. And they’ve obviously never admitted it, but this policy protected the hegemony of the App Store, and therefore Apple’s control over the whole ecosystem. The absence of web push on arguably the world’s most important web browser (iOS Safari) was a feature for them. It constrained PWAs to niche, toy use cases - if you wanted to make a real app with notifications (like most apps) and you wanted it to be available to iPhone owners, you had no choice but to follow Apple’s technical and content restrictions and generally play to their fiddle and be very polite to them. So with that incentive structure in place, I didn’t hold out much hope for the situation ever changing except possibly through some anti-trust thing. But now it’s happening. Why? What does Apple get out of this move in return for the loss of control it is likely to mean for them? Can anyone shed any light? Perhaps it’s about staying a couple of steps ahead of antitrust suits they can see coming down the line? The only caveat I can see is it requires a $100/year developer certificate. That doesn’t sound like a major caveat to me. That cost is nothing if it means you can build one app that runs everywhere. I guess maybe Apple could still revoke your certificate if they don’t like what you’re doing with your web app, ie hamstring your webapp by taking away your push notification ability. But I’m guessing (hoping) this would be a very rare hostile ‘intervention’ compared to the common experience today of every app update being subjected to review by Apple and possibly rejected for arcane reasons.
- hutattedonmyarm 4y ago> The only caveat I can see is it requires a $100/year developer certificate Does it? I know it did for sending notifications in Safari on macOS, but I think this time it does not. See [0]: "You don’t need to join the Apple Developer Program to send web push notifications." [0]: The only caveat I can see is it requires a $100/year developer certificate
- petmon 4y agoA few years back we had this same discussion orbiting around Service Workers. Here's a post from 2017 where the top comment argues that what's holding back the web is the lack of Service Workers in Safari: https://news.ycombinator.com/item?id=14489577 https://news.ycombinator.com/item?id=14489577 Apple shipped Service Workers in WebKit in 2021. Are web apps much better now than in 2017? Frankly it seems about the same. The best web apps are still exercises in minimalism like Wordle, which don't need Service Workers or Web Push.
- l72 4y agoHas anyone tried to run their own push server for firefox? https://autopush.readthedocs.io/en/latest/index.html https://autopush.readthedocs.io/en/latest/index.html