Edit: [Disclaimer] I work with them. To clarify, the container is already built, you can build hybrid or native apps on top of that.
Ask HN: How are you building cross-platform (mobile and browser) apps?
11–20 of 84 posts
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#12DronaHQ has a container product that runs on all mobile and desktop platforms as well as a web app. http://www.dronahq.com/platform/uec/ Edit: [Disclaimer] I work with them. To clarify, the container is already built, you can build hybrid or native apps on top of that.
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#13If you want to share UI across platforms you could potentially use something like https://github.com/lelandrichardson/react-primitives to do that, but we don't and I'm not sure we'd want to because we don't want to use the same design on all platforms.
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#14I'm not convinced this is what we'd do if we were starting fresh, I imagine we'd look at React / React Native. However, this definitely works for us for now.
[1] We also deploy to very old / basic phones, so we use this opportunity to bundle our own version of the web view so we can target higher chrome versions.
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#15The only downside is if you do want a native look and feel, you'll need to find a UI library to provide that, but that's no different than if you were writing a PWA.
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#16One code base plus auto-syncing of user data.
Works pretty great.
Ionic is pretty close to a native feeling. I think most people wouldn’t be able to tell the difference.
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#17Specifically, tools for Apache Cordova: https://www.visualstudio.com/vs/features/cordova/
(disclaimer: I haven't used them, but I've heard very positive feedback)
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#18React Native is a great for cross platform iOS and Android native. If you want code sharing across native app and web app, look into ReactXP, or come up with your own code sharing technique, which apparently @sdcookie’s team did.
Titanium from Appcelerator also supposedly targets Native and Web.
Also consider focusing your efforts on native and not doing a web app. RobinHood stock trading app went a long ways without having a web app. Just throwing that out there.
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#19Apps targeted for B2B users are considerably more flexible in terms of UX, the goal is mainly to help users get stuff done, so hybrid is more viable here. Which is what we usually do with cordova. Some considerations to bear: using cordova, the team doesn't really get much expertise with the proper platform, so problems are sometimes harder to debug because of lack of developer maturity in the platform. You need to design with an eye to light performance requirements, which usually means facilitating inputs and maybe have a separate web interface for complex UI like dashboard and management.
If you absolutely have to share code between apps, your options are:
- hybrid approaches like cordova, or build your own native web view shell and load your web code manually
- react native, which is not v1 yet, and looking at it recently I'm personally not sold on it yet, many unkown unknowns to actually double down and build on it. But that's just my opinion.
- Black box compatibility frameworks like Xamarim, Nativescript and the like. They work by giving a common platform middleware that builds to multiple target platforms. There are a lot of trade offs here, specially the lack of control. If a feature is buggy or not supported there is little recourse.
- I have read some big companies share code via C++ bindings used natively on each platform (loaded in Java and Objective C). I imagine this technically "solves" the problem, as you can share code and build natively, though I have no idea what tooling there is to help with this, and imagine the developer experience gets the short end of the stick.
edit: typos
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#20Interestingly, Flash/Air seems most-popular cross-platform mobile toolkit for app dev (far ahead React Native): https://blog.appfigures.com/wp-content/uploads/2018/03/11-No... (from https://blog.appfigures.com/ios-developers-ship-less-apps-fo... )