News for hackers. Stuff that matters.
Re:Tauri Mobile – Develop Mobile Apps with JavaScript and Rust by tekkk on Wednesday March 01, 2023 @08:03AM (#34981897)
Been using Dart & Flutter. Kinda leaning towards using plain old HTML & CSS inside a webview instead of learning how to work with mobile-specific widgets. Neither won't beat pure-native but at least I'd be able to make a half-decent app fast with HTML & CSS. Tauri looks enticing from that perspective but idk how polished it is vs Flutter.

Oh I'm already using Rust in backend so that wouldn't be a big deal. Wonder how well you're able to do GPU / graphics stuff inside webview though? Is WebGPU supported?

Re:Tauri Mobile – Develop Mobile Apps with JavaScript and Rust by nicoburns on Wednesday March 01, 2023 @08:28AM (#34982116)
You might want to consider React Native. That way you get native widgets but CSS-style layout so there's not too much to learn.
Re:Tauri Mobile – Develop Mobile Apps with JavaScript and Rust by nwienert on Wednesday March 01, 2023 @11:44AM (#34984455)
Tamagui also really makes targeting web or native really enjoyable.
Re:Tauri Mobile – Develop Mobile Apps with JavaScript and Rust by Krastan on Wednesday March 01, 2023 @09:02PM (#34990977)
Disclaimer: He built Tamagui.

I enjoyed your episode on React Native Radio!

Re:Tauri Mobile – Develop Mobile Apps with JavaScript and Rust by yesimahuman on Wednesday March 01, 2023 @09:08AM (#34982533)
I’d take a look at Capacitor. I’m biased because I created it but I think it’s fair to say it’s the leading platform for web tech on mobile at the moment.
Re:Tauri Mobile – Develop Mobile Apps with JavaScript and Rust by eklavya on Wednesday March 01, 2023 @12:40PM (#34985460)
I haven't checked it thoroughly but would be grateful if you can share. Can you create a single app for mobile, desktop and web in capacitor?
Re:Tauri Mobile – Develop Mobile Apps with JavaScript and Rust by yesimahuman on Wednesday March 01, 2023 @01:16PM (#34986117)
Here's the site: https://capacitorjs.com/

And yes, Capacitor apps can target all of those platforms from a single codebase. If you ever need help or have questions feel free to reach out to me on twitter (link in bio)!

Re:Tauri Mobile – Develop Mobile Apps with JavaScript and Rust by eklavya on Wednesday March 01, 2023 @01:32PM (#34986388)
Thanks for your kind offer :)
Re:Tauri Mobile – Develop Mobile Apps with JavaScript and Rust by not_a_shill on Wednesday March 01, 2023 @01:50PM (#34986641)
I'd look up some Capacitor apps and see if the UI performance with webview is good enough for you. From my experience it's not great on Android, but good on iOS. Meanwhile Flutter is the other way around, and given that iOS is a more important target...this might not be a terrible route to go.

I can't imagine it'll be quicker than Flutter development if you 1) don't have strict design requirements, 2) you're pretty much only targeting mobile, 3) you want something that looks good out of the box.

If you already have a webapp and mobile performance is acceptable, I'd consider just doing Capacitor and migrating to Tauri when the mobile ecosystem is in a good place.

Edit: Oh the ionic CEO already recommended it lol

Re:Tauri Mobile – Develop Mobile Apps with JavaScript and Rust by nicoburns on Wednesday March 01, 2023 @03:47PM (#34988096)
> From my experience it's not great on Android, but good on iOS.

Huh, that always used to be case (back when the iPhone 4 was the latest model). I'm amazed Android devices haven't solved this yet given that even slow android devices must have faster CPUs than an iPhone 4. Perhaps it's a software issue rather than a hardware one...

Re:Tauri Mobile – Develop Mobile Apps with JavaScript and Rust by not_a_shill on Wednesday March 01, 2023 @05:12PM (#34989075)
https://github.com/ionic-team/capacitor/discussions/3899#dis...

Apparently it's an issue with Android's webview interaction with accessibility settings.

https://engineering.fb.com/2022/09/30/android/launching-a-ne...

Facebook ships their own webview implementation to solve a couple other webview issues, but that's not really a viable solution for everyone else