Ask HN: What's the quickest way to port a Rails app to Android?
We have a Ruby on Rails based web application. We have been getting a lot of requests for an android app from our users specifically so that they can access some data on the move even without an internet connection. What would the quickest way be?
PS: I am not looking to write the code from scratch. I am want to optimize the time to release the android app.
14 comments
[ 4.7 ms ] story [ 37.2 ms ] threadThis would mean a small amount of code on the Android side and some augmentation to how your rails app works, but its likely that your rails application already works alot like an API even if you didn't quite plan it that way by the nature of how rails lays things out for you.
Otherwise, if your back-end has a usable API, then something like PhoneGap will be faster than writing a native Android/Java app.
Our marketing website takes the first approach, for our core app we write native Java.
If you do need to it's very simple, your web server has to include some extra headers:
Note - to any naysayers of this technique, getting an app out in the app store in this case is simply another distribution technique, even if the site is 100% identical to the web version.
PhoneGap seems only interesting if you wish to commit the cached changes (or is offline = read-only?) upon regaining of connectivity.