TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Cross platform mobile and web development

7 pointsby isgood12over 10 years ago
I think this discussion will be helpful for many of us:<p>Say you have to build a computationally simple, but highly polished app. Say an app like &quot;The Weather Channel&quot; app. And you want to keep your business logic consistent across platforms (iOS, Android, Web) over the multiple versions of the app. Otherwise, over time, the app starts behaving slightly differently on different platforms.<p>You can either use a cross platform development solution that supports iOS, Android and web. Or, you can use some other method to keep the business layer (which can be shared) separate from the visual layer. How would you go about doing so using today&#x27;s technologies? Would love to hear from those who&#x27;ve tried Xamarin, Unity, PhoneGap, React Native, Ruby Motion, etc.<p>Bonus question: How would you go about prototyping and designing such an app for the 10+ very different screen sizes?

3 comments

seekingcharlieabout 10 years ago
I lead design across a similar product (with iOS, Android &amp; web). We have a web API &amp; that&#x27;s what our native apps pull their data from (we report on things like sales etc, so this ensures we&#x27;re consistent across all platforms).<p>Re design - I&#x27;d literally do a design for each platform (iOS, Android, Web). There are huge differences between iOS &amp; Android - they have completely different user experience&#x2F;functionality so you can&#x27;t just port 1 exact design across multiple platforms.<p>I&#x27;d highly recommend creating a UI style guide if you don&#x27;t have one already. It&#x27;s really quick for me to do 10+ screens as I&#x27;m using the same colors, fonts, etc in each file &amp; then I generally just have to move blocks around for each platform.<p>Also, I recommend Sketch for design work. It&#x27;s a lifesaver for designing between multiple platforms &amp; everything is vector so it&#x27;s scalable between different resolutions. A million times better than Photoshop for UI design.
FlyingLawnmowerover 10 years ago
I use Xamarin for personal projects, and it&#x27;s been working quite well so far. They&#x27;re pretty good about exposing native UIs so you get native looking applications instead of the ugly (in my opinion) PhoneGap like apps. Plus, C# feels like it was made for mobile apps. However, there are downsides...trying to do anything that leverages many sensors on the device gets tricky, and they&#x27;re isn&#x27;t as much support available on StackOverflow and whatnot. I think it is the best cross platform app solution out now though.
jefflinwoodover 10 years ago
With regards to prototyping and designing, you really have to be thinking about responsive layouts with breakpoints.<p>Whether that&#x27;s native Android layouts and dimension files with different breakpoints for widths, Size Classes for iOS, or CSS Media Queries for the web, that&#x27;s really what you need to decide.<p>Generally speaking, for a content-heavy app, you&#x27;re going to end up trying to move all of your business logic into your server back end, and let your front end (Android, IOS, web) render content.