72 points · by redbar0n · 3y ago · 104 comments
Just maybe web apps suck and it’s not mean old Apple holding PWAs back?
It's that you can't spy on your user nearly as effectively with a web app compared to what you get with native. You're limited to web APIs, instead of native APIs. Which is why, I believe, there is a full court press on so many sites to get mobile users away from websites and into their apps.
I'm not alone in preferring to just use a website and not clutter my phone with apps for every online site I may interact with. Yet many sites actively press me to switch to the app including crippling the mobile version of the site. Removing features that work fine on desktop as soon as they detect a mobile client.
In what way?
Epic tried with Fortnite and they came crawling back to Google Play
No one ever said “I would really love to have a battery draining, more CPU intensive slower web app than a native app”
> No one ever said “I would really love to have a battery draining, more CPU intensive slower web app than a native app”
No one ever said "I want to pay 1,5k euro for a phone that has the limitations of a feature phone from 20 years ago". Go on, tell me how blocking me from loading proper browser benefits me because of some performance boogieman that you have in your imagination.
Which market? There are no browser engines beyond Chrome, a very distant Safari, and a near-irrelevant Firefox
> for a phone that has the limitations of a feature phone from 20 years ago
Tell me you never used a feature phone from 20 years ago without telling me this.
Indeed! We would all have to walk around with an external battery pack!
Back at the release in 2007, web apps were the original way to build for the iPhone until Apple got the App Store working. Apps became king because of the 30% cut.
And
https://open-web-advocacy.org/walled-gardens-report/#evidenc...
Make sure you tap more comments to see the examples.
The number one issue for building native like apps is this https://github.com/web-platform-tests/interop/issues/84
It has been buggy for as long as I can remember and never been fixed.
Not to mention the 10 years of issues with indexeddb or the issues with WebRTC.
The site does throw in a few legitimate complaints (like IndexedDB), but otherwise it's poor quality.
We're like 15 years from the original iPhone launch. I was going through reading about every web API on MDN [1]. I was wondering what you could accomplish now that many of the apis are now reasonably stable. Looks like I'm in for some frustration. Glad to learn about open web advocacy initiative today, mtomweb.
No, pretty sure that's not the main reason they're subpar compared to native.
Hell, so's Java, and that's way better-positioned to not-suck relative to native than webtech is, and it's been in that game far longer.
(Cue in "but they are underpowered devices in poor countries")
PWAs don't integrate well into the native menu system, like say MacOS. This is much more noticeable on desktop. On mobile, it's fine.
The access to the file system is more limited (can be a feature rather than a limitation). Again, this is more noticeable on desktop as mobile apps tend to be heavily sandboxed.
Specialty hardware access like bluetooth, USB doesn't work. Direct access to the network stack or information isn't available, etc etc.
It's much more popular to use a wrapper around an HTML5+JS+CSS stack to overcome these shortcomings. Electron, Capacitor, etc.
Buggy -> same demonstration of a lack of investment, not fundamental to the technology.
Slower -> I only see this "objection" on hackernews. Every user I talk to just wants their stuff to work, speed doesn't even make their list of concerns.
the problem is really on apple's side, if its own webkit keeps ignoring the new advancements in web apis intentionally(PWA, new web apis,etc), at least it should allow a true thrid-party browser engine installed who can do it. a true chrome will be much better at least.
what apple does has to be stopped via lawsuits as microsoft experienced in the early days for its browser and OS exclusive tight integration.
There are many other viable ways for creating a cross-platform app:
https://dev.to/this-is-learning/the-different-strategies-to-...
Another way just now to have that is Dart with or without Flutter.
1. Encourage webshi^H^H^H developers to use it
2. Insist the feature cannot be removed because Don't Break The Web™
3. Get someone to type up something that describes the Chromium implementation into the standard
4. It's standard now!
Citation needed.
Except it's even easier than in the old days, because Brave remembers where you went, holds the credentials, and puts an icon on the start page for them.
Take even any native app in a webview, the performance are abysmal. Not because of the web tech itself, if these apps were written in plain JS/DOM, I'm sure they would run fine, but because developers chose to use complicated technologies with terrible performances on mobile, such as React. React is fine on desktop, React is not fine at all on mobile, unless one has access to $500+ handsets, which already discriminates against a significant audience, but developers won't test performances on low cost handsets at first place.
Profile any web app and you'll find that most of the slowness is the unnecessary and constant fetching of unoptimized assets and very high latency responses to API calls. Caching is rarely done correctly on the client side of a web app and nobody wants to put in the effort to properly lazy load and unload stuff seamlessly because of how tightly coupled it is with the visual layout and design. Network requests are especially unreliable and slow on mobile devices. On the dev's machine and in the testing environment it's not though.
This is really all it is. I'm serious. Why doesn't anyone ever look at the network tab in dev tools and see for themselves? It's disgusting.
(Now we just have to cross our fingers for Apple delivering PWA push notifications for Safari in iOS 16 next year like they’ve announced. Then PWAs on mobile will be all the rage.)
Here are some recent comparison videos, using the exact same app example.
React Native (w/ Animated API): https://www.youtube.com/watch?v=yV-2HRzNX9o&t=13s
Ionic React 5 + Capacitor 3.0 (w/ SwiperJS): https://www.youtube.com/watch?v=2o2hpv9N7Ys
Web apps are apparently able to achieve 60 fps in a Web View these days: https://ionic.io/blog/ionic-vs-react-native-performance-comp...
On the other hand, you have efforts such as Tamagui.dev which can give you close to 100% code sharing between a React web app and a React Native app (making the divide less relevant, for mobile apps at least):
With a high end device. That's the problem. I can get 60FPS in my native app on a $50 Android phone if I use Kotlin/Java and Android SDK... I can't get that in a web view on the same device with a native wrapper using Ionic...
Did you try recently? Ionic has developed quite a bit the last years, it looks like.
Did you try the same with a React Native app too?
Source is here: https://github.com/OpenWebAdvocacy/website
In Soviet Russia, where economics was interesting, terms like "monopsony" or "oligopoly" were known to (many) schoolkids. I'd still prefer them than this vague novelty.
Aside from that web app technology is of poor quality in almost every important domain: architecture, efficiency, stability and security. "Native" mobile apps have overlapping problems in these domains, too, but web apps are generally going to be strictly worse. No thanks.
And you never wondered how it came to this in the first place?