Note that there are some explanatory texts on larger screens.

plurals
  1. POArchitecture Best Practice: Rails and Mobile/Web App
    primarykey
    data
    text
    <p>I am having a browser-oriented web app build on Rails (3.1). I want to make some features of the web app available on mobile devices, too.</p> <p>Besides...</p> <p><em><strong>1.) Building native apps for each vendor of devices and interacting with my rails web app using JSON/XML</em></strong>, ...</p> <p>I am thinking about reusing as much as business logic already implemented in my rails app by reusing controllers/models and add some new views targeted to mobile devices (in terms of screen size and the like...).</p> <p>With this approach, I see two alternatives:</p> <p><em><strong>2.) Let the end user access the part of the rails app targeted to mobile devices in the mobile browser.</em></strong></p> <p><em><strong>3.) Set up a native mobile app wrapper, e.g. using PhoneGap, and refer to the same part of the rails app used for 2.).</em></strong></p> <p>The advantage of 3.) is that I can reuse business logic of my rails web app and having a "phantom" native app for mobile devices at the same time. (I used the term "phantom" because besides the wrapper, it's not really native, this approach actually just mimics a native app.)</p> <p><strong>Question 1: Are there any other alternatives besides 1.) to 3.) ?</strong> </p> <p>Regarding 3.)</p> <p><strong>Question 2: Does Apple accept this kind of apps (which fetch large portions remotely) to be uploaded to the app store?</strong> </p> <p>-> I would be surprised if it is so, because it would allow one to change large parts of the app without the notice of Apple.</p> <p><strong>Question 3: From an architectural/technical point of view, is it recommended to remotely fetch prerenderd html/js to be executed in a "phantom" native mobile app build on top of e.g. PhoneGap?</strong></p> <p>-> Wouldn't it be better to set up an independent client app within the native mobile app (maybe using backbone.js), keeping all html, css, js locally within the mobile app, and communicate with the backend using JSON/XML or whatever?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload