I have a Rails 4 app that is fully responsive and works good on the mobile browser. However, I want to make native apps for it for iOS and Android.
What are some recommended steps? Is Phonegap a good option still? Are there any great resources/posts/tutorials/books on taking a rails app and making an API for mobile?
What are some next steps that people/solo devs follow?
I think most people have opted not to build a native app that's just a mobile browser because it doesn't provide a great experience.
That said, it's still the easiest way to go. I believe if you use something like Phonegap, you probably do not need to do as much with regards to building APIs. You basically just need to store the session cookie around so next time you launch the app the user is still signed in.
If you'd like to go the full native experience, you will have to do a lot more work with building the apps and the APIs to support them.
Are you leaning one way or the other?
I was thinking about starting with the path of least resistance. Then releasing an improved native experience once I learned more on what the customers needs were. I have not fully developed any native mobile applications so my thought was that a Hybrid using Phonegap could provide me with the training wheels with a quicker release cycle. BUT... That being said, if the Phonegap experience is terrible I rather just put in the time to go fully native. I'm all ears if you have a suggested/recommended pipeline.
I think if you're shooting for something simple as a start, Phonegap and related options should work pretty well for you. I don't think they're awful experiences and they've gotten quite a bit better over the years. It's definitely worth a shot because your time investment will be so much smaller than trying to build a full API and native mobile apps.
From a quick google search, I found this and he builds a basic Phonegap app for a Rails app in under 15 minutes. Not too bad if you want to experiment with it and see what you get.
Ok, after further review the Phonegap option didn't work for my given application. That being said, I am looking into Rubymotion. However, first things first I want to learn more about building a Restful API using JSON API to interact with. Poking around now to find the best resources for this.
Also I recommend you take a look at the article Native app vs hybrid app or why not a cross platform:
There are three development approaches: native, cross-platform, and hybrid. Each of them has its own special features and brings about different results. Not trying to influence your decision as your outsourcing partner and get the ideal for your business product, let's compare all the technologies. https://artjoker.net/blog/native-mobile-application-development-vs-cross-platform/
Join 30,005+ developers who get early access to new screencasts, articles, guides, updates, and more.