News for hackers. Stuff that matters.
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.