Live data from Hacker News

Ask HN: How are you building cross-platform (mobile and browser) apps?

news.ycombinator.com

51–60 of 84 posts

Re: Ask HN: How are you building cross-platform (mobile and browser) apps?

#51
post #48

I were looking at Vue NativeScript. Anybody on why should I not?

Also curious if someone has anything to say about Vue/Nativescript. That would be my choice as well. I'm constantly wondering why React Native gets all the attention when Nativescript seems to have so much going for it.

Re: Ask HN: How are you building cross-platform (mobile and browser) apps?

#52
post #47

I use React + React Native for https://www.jqbx.fm . As a 1 man project it seemed like the only sensible way to build mobile (android/iOS) and browser versions. I can share almost all of the code (where applicable) so one can move a lot faster and have a lot less mental overhead. That being said React Native has stability and performance issues that are tricky and can hold up your app for a non-trivial amount of time…

Looks nice! What are you using for the backend?

Thanks! BE is Node + Express. I tried to keep a lot of the logic in the clients to it's pretty slim. I'm a FE developer professionally so keeping it all within the JS ecosystem was most comfortable for me.

Re: Ask HN: How are you building cross-platform (mobile and browser) apps?

#53
post #7

Depending on your needs, using something like Turbolinks [1] may be a great fit. There are iOS and Android libraries that can make your web app talk to your native app so it can do things like trigger screen transitions, populate native menu or tab controls, etc. We're using a similar idea at my company and so far it's been very successful for us. [1]: https://github.com/turbolinks/turbolinks/#readme

I use Turbolinks over at HOALife.com. Mobile clients take advantage of native geolocation, camera, and photo library upload.

The web, iOS, and Android devices utilize all of the same server generated HTML + JS google maps et al. 0 to completed for both Android and iOS in maybe 30 hours because of the native API stuff I had to learn. If you don't need those native API's or know Swift/Java better, that time could be trimmed down considerably.

Re: Ask HN: How are you building cross-platform (mobile and browser) apps?

#55
post #45

I use React + React Native for https://www.jqbx.fm . As a 1 man project it seemed like the only sensible way to build mobile (android/iOS) and browser versions. I can share almost all of the code (where applicable) so one can move a lot faster and have a lot less mental overhead. That being said React Native has stability and performance issues that are tricky and can hold up your app for a non-trivial amount of time…

Wow that app is exactly what me & my friends have been looking for. They even started hacking together an Android version of this. Looks really well done! One question: Do you plan on writing a native desktop solution? I'm not a fan of having to keep my browser open just to run a single app.

Hehe.. turntable.fm v2.0 :-) https://en.wikipedia.org/wiki/Turntable.fm

Just checked it out. This is really well executed! Definitely doesn't look like a one man operation. Congrats!

Re: Ask HN: How are you building cross-platform (mobile and browser) apps?

#56
post #55
post #45

Earlier quoted context omitted.

Wow that app is exactly what me & my friends have been looking for. They even started hacking together an Android version of this. Looks really well done! One question: Do you plan on writing a native desktop solution? I'm not a fan of having to keep my browser open just to run a single app.

Hehe.. turntable.fm v2.0 :-) https://en.wikipedia.org/wiki/Turntable.fm Just checked it out. This is really well executed! Definitely doesn't look like a one man operation. Congrats!

Thanks! And yeah heavily inspired by tt.fm (RIP). Hopefully the community keeps growing and can bring some of that 2011 internet magic back.

Re: Ask HN: How are you building cross-platform (mobile and browser) apps?

#57

I use React + React Native for https://www.jqbx.fm . As a 1 man project it seemed like the only sensible way to build mobile (android/iOS) and browser versions. I can share almost all of the code (where applicable) so one can move a lot faster and have a lot less mental overhead. That being said React Native has stability and performance issues that are tricky and can hold up your app for a non-trivial amount of time…

That looks incredibly well put together -- congratulations. I'm about to launch my first commercial React Native app (pretty simple app aimed at general aviation pilots), so let me know if you end up sharing some of the code for your project -- I'm sure there's lots to learn from it!

Re: Ask HN: How are you building cross-platform (mobile and browser) apps?

#58

Pure html+css with as little js as possible... eg: websites/single page webapps over native ios/android apps

Wow. Among all conversations, haven't heard this simple truth mentioned any more. Would love to hear more discussion along these lines.

Re: Ask HN: How are you building cross-platform (mobile and browser) apps?

#59
post #55

Earlier quoted context omitted.

Hehe.. turntable.fm v2.0 :-) https://en.wikipedia.org/wiki/Turntable.fm Just checked it out. This is really well executed! Definitely doesn't look like a one man operation. Congrats!

Thanks! And yeah heavily inspired by tt.fm (RIP). Hopefully the community keeps growing and can bring some of that 2011 internet magic back.

Yeah and this is smart because this time around the licensing falls on Spotify where as back then TT had to negotiate licensing if I'm not mistaken. I'm not a lawyer but if that's true this seems much more viable using Spotify's APIs with the caveat that your entire business relies on them if that's your aspiration. Regardless, wish I'd thought of this :-P Seems like it would be such a fun app to work on :-) Best of luck to you!

(BTW it just pinned a Google chrome helper on my machine so I had to kill it. Not sure if you know anything about perf. with your app yet. Just FYI)

Re: Ask HN: How are you building cross-platform (mobile and browser) apps?

#60
Just wanted to mention that React Native + React Native Web _is_ a viable solution (at least for me it was). I was able to convert a mobile React Native project into a usable mobile website with Next.js and `react-native-web`.

I had to use a lot of platform-specific imports (eg: `index.ios.tsx`/`index.web.tsx`) to replace anything mobile-specific, and there are some cases where you need platform-specific UI components as well to make everything look nice on larger screens.

My only complaint is it gets a bit messy having all these different entry points and platform-specific modules and whatnot. Overall, it's probably the best you can hope for to write an app for mobile + web with ~80-90% _actual_ code sharing.

Post reply on HN