Skip to main content

Native Mobile Options

General • Asked by Brent C

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.

https://www.youtube.com/watch?v=LjIKElAP6_A


Thanks Chris I'll check it out and report back.


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.

Some resources.
https://robots.thoughtbot.com/welcome-aboard-youre-riding-ios-on-rails
https://www.airpair.com/ruby-on-rails/posts/building-a-restful-api-in-a-rails-application


Also I recommend you take a look at the article Native app vs hybrid app or why not a cross platform:
https://www.cleveroad.com/blog/see-how-to-find-the-correct-mobile-app-strategy-to-develop-a-software


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/


Before development, there is always a question of what approach to design to choose? Now the augmented reality is the mainstream and when developing AR applications also the question arises what to choose? My opinion the choice of development should be based on what kind of application you want to get as a result and for what. Read the helpful guide, which details the advantages and disadvantages of each approach
https://invisible.toys/native-vs-cross-platform/

So many useful links! Thanks, guys! I want to create AR application to be used in construction and interior design (something like describedhere). Your suggestions will help me a lot!


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.