36 ms·
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
by roblh 4y ago
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.
- bradgessler 4y agoDef interested in how you got swipe nav working! Everything we tried felt junky, so we just turned it off.
- roblh 4y agoI 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.