94 points · by CharlesW · 1y ago · 79 comments
You can feel the dev team trying to get as close as they can without shooting their golden goose App Store.
So many apps could be PWA…and we could expect so much more from the median PWA.
BeforeInstallPrompt is non-standard. They removed it from the specification because Mozilla had no plans to support it and Apple wouldn’t commit either.
Here’s the discussion:
> There is also some disagreement on the a `BeforeInstallPrompt()` event (BIP). Despite BIP having been in the spec for a few years, neither Safari nor Firefox have opted to support it. As it stands, Mozilla does not plan to support BIP. We are unsure what WebKit's plans are - @hober maybe could let us know? If WebKit doesn't plan to support it, then we should probably remove it from the spec.
— https://lists.w3.org/Archives/Public/public-webapps-github/2...
So yet again, this is a case of Google wanting something, Google implementing it unilaterally, Google not being able to convince any other rendering engine to implement it, then the non-standard, Blink-only behaviour is being presented in situations like this as if Safari alone is failing to support a standard.
Web standards are not whatever Google wants. They are arrived at through consensus.
Remember the iOS 17.4 thing from February 2024. Apple completely disabled PWAs in the EU, claiming alternative browser engines created insurmountable security problems that would require building "an entirely new integration architecture" that wasn't practical given DMA timelines. Then after two weeks of backlash they reversed it. If the technical barriers were real, how did they solve them in 14 days? That looks less like a technical limitation and more like testing how much they could get away with.
Or push notifications, Safari on macOS got them in 2013. Safari on iOS got them in 2023. Same WebKit engine, same APNs infrastructure, 10 years apart. What's the technical explanation for that gap? And even after iOS finally got push notifications, they only work for PWAs installed to home screen, not in Safari itself. That's a restriction that doesn't exist anywhere else. Android Chrome has had this working in the browser since 2015.
That's the genius of plausible deniability, every individual decision has some technical justification you can point to. BeforeInstallPrompt lacks consensus (true). Safari has limited resources (as has Chrome). Security is hard (definitely true). But the cumulative effect of all these decisions, year after year, is that PWAs on iOS are hobbled compared to native apps in ways that just happen to protect a $20B+ App Store business.
Your fact-check on BeforeInstallPrompt actually demonstrates why the other patterns are harder to explain away. It shows Apple can legitimately decline features through proper standards processes, which makes the decade-long notification delay and the iOS 17.4 reversal look even more suspicious by comparison.
Yes, and this pattern keeps popping up:
- Google wants something
- Google writes a spec.
- Google implements it.
- No other rendering engine wants it.
- It starts popping up on sites like this.
- People complain that it’s Apple’s fault for not implementing the standard.
Google keeps doing this over and over again. This is embrace and extend all over again. Web standards are not whatever Google wants them to be. They need to be arrived at through consensus.
Google gives Mozilla billions and billions of dollars and they still can’t get Mozilla to agree to these things. Google can’t get anybody outside of Google to implement these things.
Stop ignoring the fact that Mozilla is also saying no to a tonne of stuff. Stop ignoring the fact that no other rendering engine wants these things.
This is not “Apple is holding things back”. This is “Google is trying to unilaterally control web standards”.
This scorecard says that Chrome for Android already does pretty well, but how many users use PWAs on Android?
That may have being true a few years ago, but now days unless you are really pushing for very specific stuff GPU stuff. With CSS GPU acceleration its barely noticeable for normal UIs. Now there are tons and tons of PWA that is done in a very in efficient way, then you get a really laggy app.
I'm really tired of hearing this quite frankly, because the reasons as to why that happens to be the case in some scenarios is not "just" a coincidence, which has been explained ad nauseam.
>This scorecard says that Chrome for Android already does pretty well, but how many users use PWAs on Android?
While I've not seen any stats, I personally use them where possible. Interestingly, my boomer Dad, who is completely clueless when it comes to technology, independently discovered them. He has no idea what a "PWA" is, but he always asks me to "make this website an app for me".
That would be a nicer world.
They only started back paddling after the app store was introduced and consequently crystalized into a multi billion $ market
Kinda... Google and folks have been cracking down on security pretty hard, to the point where certain things would probably stop working if you weren't maintaining the security of the endpoint or something correctly. There are APIs (more and more everyday it seems...) that only work with "secure contexts" like HTTPS, and they're working actively on tightening HTTPS requirements (like shortening certificate lifetimes, valid ciphers etc). Sure, this helps improve security, but not without breaking compatibility.
I know Chrome / Edge kept having issues with it being behind experimental flag and even the flag breaking and going away between builds.
Never heard of Safari supporting tabbed mode for PWA's
This is probably the biggest issue for me with PWA's windows.open actually opening a new full OS window sucks rather than a built in native tab strip.
https://developer.mozilla.org/en-US/docs/Web/Progressive_web...
It is not, thank you. Fixed!
https://issues.chromium.org/issues/393149332
Not sure why there isn't more traction here, tabs is the biggest thing holding back PWA's for me.
Steve first talked about application development for iPhone at the same keynote I was demonstrating the new ID Tech 5 rendering engine on Mac, so I was in the front row. When he started going on about “Web Apps”, I was (reasonably quietly) going “Booo!!!”.
After the public cleared out and the rest of us were gathered in front of the stage, I started urgently going on about how web apps are terrible, and wouldn’t show the true potential of the device. We could do so much more with real native access!
Steve responded with a line he had used before: “Bad apps could bring down cell phone towers.” I hated that line. He could have just said “We aren’t ready”, and that would have been fine.
(read the whole thing, for real).[0] https://www.reddit.com/r/Games/comments/8l9qw2/comment/dzdwc...
They work fine for both iOS and macOS. Safari scores higher than Firefox on Android.
Don’t be fooled by scores like this that include non-standard behaviour. Including Blink-only behaviour that both Mozilla and Apple have rejected is obviously going to artificially inflate Chrome’s score.
Last time I tried developing a PWA-first app on iOS it was horrible. Users couldn’t figure out how to install it, notifications, workers, haptics, etc had all sorts of arbitrary restrictions.
Scores intentionally do not include non-standard or experimental capabilities. I'll make that clearer, thank you!
PWAs work very well on macOS. I use the PWA version of discord instead of their electron app because it feels a lot more "native" and responsive than the alternative.
I help run PWABuilder.com, which packages PWAs for app stores. I think it would be helpful to our users to see your pwascore.com site. Maybe we can link to your site from ours.
Yes, we need to do this, but it has to be an actual test suite.
People need to be able to contribute tests to expose broken “supported” functionality.
This just perpetuates lies.
Kudos to the author, I have absolutely nothing against your efforts, but the approach is just flawed in my opinion.
The data sources are credited at the bottom, and I feel like they're both gold-standard references. I'm open to suggestions!
If you just did what they have but make it actually test to the spec, it’d be great.
“Caniuse” is not gold standard. It’s basically “Did the browser vendor claim to support a feature”.
iOS safari has so many bugs throughout everything on the web, if you actually have them red for every feature with a bad bug, they’d have so much worse of a score.
Eg. Does safari support audio element? Yes on the surface. But try to play from a cached blob. It’s hilariously broken.
See my comment history, there’s an app with a LONG list of safari media bugs. Yet your page lists them with a green check. Lies.
I’m not surprised if nearly every feature there “works” but try to build an app with it and you find yourself set up to fail.
I can create a filter for that, thanks for the feedback! Importantly, experimental and non-standard features are not counted in the primary score.
Experimental capabilities have a little 'flask' icon next to them, and non-standard items have a little 'warning' icon next to them, mirroring MDN conventions.
This feels like a chrome ad
A significant number of things on this list are non-standard things that only Google have implemented for Chrome, that no other rendering engine has agreed to implement. Obviously this gives a huge artificial boost to Chrome.
(One of the search options on the 404 page goes to a possible PWA-related page, but it's also marked as "Limited" there.)
Biggest problem for me as a PWA dev is how eager mobile browsers are to delete your local data, which is not part of this scorecard. I guess that's tricky to quantify, but basically they all suck but Safari sucks more.
File-sharing services (e.g., sharedrop?) seems to be some of them but I'm not sure if its popular in terms of usage.
FWIW, in the US, PWAs are a non-starter for most apps due to Apple having so much marketshare and having horrendous UX for installing them. Anytime you have to provide your users "instructions" to do something on iOS, you've lost (and it's by design).
Added, thanks! I really like the suggestion to use some kind of indicator in category headings, too.
For example, is AR/VR a critical PWA feature or is that just advanced capability?
Where does PWA end and "replaces any conceivable native app" begin?
I think I understand the deeper point you're trying to make, which is that not all web platform capabilities are created equal when it comes to making PWAs a legitimate alternative to native apps.
I've tried to be thoughtful about this, and my solution was to weight the capabilities from 0.5–3. At the two ends of that range, I gave required PWA features a weight of 3, and nice-to-have/experimental features a weight of 0.5. As you can see, this doesn't really penalize Chrome for its "stunt features", and I think it provides a more realistic picture of what Firefox and Safari are capable of for most PWA use cases.
Additionally, experimental and non-standard features aren't used to compute the PWAscore. You can see raw scores (unweighted, and including experimental/non-standard features) in the tooltip of the "normal" score.
When I think of most apps on my phone, these capabilities are rare or non-existent:
- USB
- AV/VR
- Payment processing or IAP (almost certainly my own tastes here tho)
- Window management(?) - I'm not even sure what this means on mobile.
But obviously, whatever deficiencies exist in background work or notifications are probably important. Looking at CIU, Firefox seems to have resolved them in more recent versions. In fact maybe some other comment has already mentioned it but FF/Android 141+ seems to have resolved a lot of those?
Is there not much PWA stuff for desktop or... does it not matter since you can just pin tabs?
You can also ship PWAs on the Microsoft Store and allow Windows 11 folks to natively install them (for an example/shameless plug: https://homechart.app).