Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>That's right, you cannot run python code on iOS or Android using PhoneGap, but there is no need to do that. Yes, you can build a native mobile application of your site using PhoneGap.</p> <p>I'll try to explain a bit how these technologies compare to each other:</p> <ul> <li>Django is a python web framework running on a web server</li> <li>PhoneGap is a framework for building native mobile applications using web technologies (HTML5+CSS+Javascript), the application will run on a mobile device</li> </ul> <p>One common approach is to build the mobile UI with i.e. <a href="http://jquerymobile.com" rel="nofollow noreferrer">jQuery Mobile</a> and use the Django web application to provide a <a href="http://en.wikipedia.org/wiki/Representational_state_transfer#RESTful_web_APIs" rel="nofollow noreferrer">RESTful API</a> to get data to the application.</p> <p>Take a look at <a href="https://stackoverflow.com/questions/10745177/building-a-mobile-app-with-jquery-mobile-django-and-phonegap">this another question</a> for more details.</p> <hr> <p>Edit: Answer the question in the first comment</p> <p>Yes, it's possible to build a fast and well working application with these frameworks. The performance with today's smartphones is more dependent on the quality of the implementation than i.e. jQuery mobile and Django in themselves. </p> <p>Basically with PhoneGap there are three different ways for showing the content to the user:</p> <ul> <li>server side generated pages</li> <li>pages generated on the client side with Javascript usin data from the server, transferred in a predefined format using for example <a href="http://en.wikipedia.org/wiki/JSON" rel="nofollow noreferrer">JSON</a></li> <li>a combination of the previous two</li> </ul> <p><a href="https://softwareengineering.stackexchange.com/a/171210">This answer</a> clarifies server-client communication and page rendering quite well.</p> <p>You could use PhoneGap a bit like a constrained web browser, and basically show content directly from your server as you would when the user accesses the site with a normal web browser. <strong>But I don't recommend this</strong>, though. This approach has many downsides to it (i.e. what happens when the user opens a link from your website leading to another website?)</p> <p>To be accurate, at least in my opinion, UI written with Javascript and running inside an app built with PhoneGap is not native. Comparing native applications and PhoneGap applications is another thing, here is one <a href="http://boagworld.com/mobile-web/mobile-app-vs-mobile-website-design/" rel="nofollow noreferrer">take on explaining the differences</a>.</p> <p>I don't know what kind of service you are building, but in general I'd suggest evaluating the different approaches before starting to build an application. Would a responsive mobile optimized web site do or is there real need for what an app can provide?</p> <p>If you decide to build an app with PhoneGap, I'd suggest that you do it with client side Javascript and fetch the data from the Django backend with XHR requests in JSON format. There are lots of <a href="http://coenraets.org/blog/2013/06/sample-mobile-phonegap-application-with-backbone-js-and-topcoat/" rel="nofollow noreferrer">examples</a> available in the internet.</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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