News for hackers. Stuff that matters.
Re:Progressively Enhanced Turbo Native Apps in the App Store by glangenderfer on Thursday February 09, 2023 @04:40PM (#34731931)
why use this instead of a progressive web app?

https://developer.mozilla.org/en-US/docs/Web/Progressive_web...

Re:Progressively Enhanced Turbo Native Apps in the App Store by joemasilotti on Thursday February 09, 2023 @04:48PM (#34732017)
Native SDKs.

Also, most folks refuse or don't know how to add a "web app" to their Home Screen. Launching in the App Store gives you visibility in both discovery and every day browsing.

Re:Progressively Enhanced Turbo Native Apps in the App Store by bradgessler on Thursday February 09, 2023 @05:24PM (#34732533)
I've shipped a PWA to the iOS App Store wrapped inside of Ionic. The single biggest problems on iOS with PWAs shipped in this fashion is the swipe-back navigation doesn't work. There's CSS page transitions, but those aren't the same as Apple's navigation stack controls.

That's not to say PWA's can't be successful! I've found the opposite is true — that Ionic app I referred to early had an App Store rating of 4.8 stars by thousands of reviewers. I wish more people knew this secret.

Re:Progressively Enhanced Turbo Native Apps in the App Store by joemasilotti on Thursday February 09, 2023 @05:59PM (#34732973)
One of the best things about Turbo Native is that it is built ON TOP of UIKit. So you get those native navigation animations, including swipe-back, for free.
Re:Progressively Enhanced Turbo Native Apps in the App Store by roblh on Thursday February 09, 2023 @11:04PM (#34735473)
If you use Capacitor, it’s actually pretty trivial to enable swipeback navigation. All you have to do is write a very simple plugin that sets an option to true on the web view instance. I don’t remember the exact name of the flag, but I can report back with more details tomorrow, if you’re interested.

I was and am responsible for setting up a fairly large Vie app as a PWA with capacitor and I’d say it’s been a mixed bag. The dev experience is not great, but to be honest I blame iOS and macOS for that just as much as capacitor. Sometimes stuff just doesn’t work, and the community libraries to use native features are missing obvious stuff. For example, the capacitor library for working with iOS push notifications is a complete mess, and it’s missing some very basic features, like managing badge numbers in an even slightly sane way.

Re:Progressively Enhanced Turbo Native Apps in the App Store by bradgessler on Thursday February 09, 2023 @11:40PM (#34735686)
Def interested in how you got swipe nav working! Everything we tried felt junky, so we just turned it off.
Re:Progressively Enhanced Turbo Native Apps in the App Store by roblh on Friday February 10, 2023 @05:20PM (#34746785)
I dunno if you've tried this yet, but if you follow the basic Capacitor plugin guide, you can make an objective C function that calls this to enable it.

bridge.webView?.allowsBackForwardNavigationGestures = true;

We just call it on startup and it seems to work.