by andoando · 2y ago · 0 comments
I am pretty confused as to why someone would even make a native app for 99% of applications these days when you can make a PWA/Capacitor app that runs on web/android/ios all in one codebase.
Even mobile games can be run on your browser on mobile, so I am not convinced the native performance is an issue at all.
ie, if you have an App on the App Store, there's no explaining to do to the end user. Everybody with a smartphone has installed an app at some point in the past decade, they get it.
Once you move away from that and are having to explain to the user what a PWA is, that it's really the same as an App, just pin it to your home screen, etc etc, you just lose people.
somehow we need to promote the concept of offline websites. or of downloadable webapps.
"click here to install this application on your desktop. it will then work offline just like any other application"
Those should have access to all features of a native app, since they are native apps containing a webview. Even if that requires some platform specific code, that's still better than completely platform specific code.
For games on the other hand, your engine should handle most of the work supporting different platforms natively, so using a native build probably makes sense for games distributed via appstores.
- Password Manager APIs
- Notification channels
- Share Targets (Android supports this, kind of)
- Widgets
- Ability to stay in memory for longer due to lower consumption
- Less weirdness with navigation
- More “solid” feel (less layout shifting, “flashes”, etc)
- More good practices on the default/happy path (less UX to have to think about and import libraries for)
> - More “solid” feel (less layout shifting, “flashes”, etc)
These are the result of the frameworks chosen, not PWAs themselves. Flutter PWAs are always going to be slow and weird, but there are some real gems out there that feel and navigate like native apps.
One annoying issue: Android and iOS have different standards for things like scrolling, animations, gestures, and whatnot. Apps like Voyager (https://vger.app/) feel like native on my phone, except that something feels off because of the iOS behaviour.
I then scrolled again and this time it worked. I then refreshed the page to try again but noticed that the page started already scrolled and I couldn’t get it to properly centered right.
After yet another refresh I was getting the original scrolling issue. I also noticed that when scrolling down the top portion of the screen is a solid white bar which looks out of place.
I say all this not to pick on you but I constantly see web devs talk about how great you can make a PWA but it is constantly all of these little oddities that make the experience feel so subpar compared to a native app.
* Chrome on Android supports that.
navigator.share({ title, text, url: url })
2. Until You can have single button Add PWA and install on Homescreen. Current PWA is still too difficult for average consumer to understand.
3. As much as I want many more PWAs, they are still not buttery smooth as Native.
A pretty good summary was posted here the other day:
> I am pretty confused as to why someone would even make a native app for 99% of applications
The install experience with PWAs is still shite. Also, the last time I checked, every browser puts the apps in a different folder on desktops, and there's no central screen that shows you ever PWA you have installed. It's hard to even find them later.
For example, on the Mac, the PWA on the above page doesn't install at all with Brave in the default configuration. There's not even an error message. Safari installs it to the Dock, not the "home screen", and so on.
PWAs are cool as hell, but the whole install process needs to be thrown away and rewritten from scratch.