I'm looking to create a native application that can run on Windows, MacOS, Android, and iOS. Is it realistic to develop a single project that caters to all these platforms? I know Electron is not suitable for mobile, and while React Native doesn't seem to offer great desktop capabilities, I've heard that Flutter can handle everything. Still, I have my doubts about Flutter's current status. I'm leaning towards creating a separate desktop app with Electron and another mobile app with React Native. What do you all think?
5 Answers
There are several frameworks you could consider! Flutter is one of them, and it works well for both mobile and desktop. Kotlin Multiplatform with Compose is another great choice, along with QtFramework and JavaFX. If you're open to web apps, Websites or PWAs might also meet your needs. React Native can handle this too but the setup for Windows and Mac is a bit tricky right now. Personally, I'd lean toward Flutter or Kotlin Multiplatform for this project.
You might want to give .NET MAUI a shot; it targets all the platforms you mentioned. Here's the link for more details: [https://dotnet.microsoft.com/en-us/apps/maui](https://dotnet.microsoft.com/en-us/apps/maui). It could be a solid option for your project!
Keep in mind that desktop and mobile environments are quite different. Mobile screens are fixed-sized, while desktops can resize. Mobile relies on touch input, whereas desktops use a mouse and keyboard. There's also the issue of access to files and locations—desktop apps usually have more access to the filesystem than mobile ones. Balancing these differences can make it tricky to develop a more complex app that works seamlessly across both.
Check out Tauri if you want to develop using Rust or TypeScript! It's a nice alternative that might suit your needs.
We've been using a single Flutter codebase for our SCO/PoS App, and it runs on both Windows and Android. We could build it for Linux and macOS as well, but no one has asked for it yet! So far, it's been working well for us.
Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically