I am writing the application "Hello World" (html, css). Installed Phonegap, compile via build.phonegap.com. I throw into the phone - it works. Now the question.

  1. How to write an application using Phonegap and organize its work in the way my site works now? That is, I have an admin panel, something changes there, changes are visible on the site (news, photos, new pages, whatever). So in the application, changing on the server -> can be seen in the application, and all this on Phonegap, how to do it? (or you need to constantly compile with changes)

  2. There is a need to create an application, the structure is as follows: Categories (cars, restaurants, cafes), in each category 5-10 pages (institutions), in each page (institution) text + pictures. Is there a ready-made assembly or can a method how to create such an application with the least effort? (web know well)

    1 answer 1

    When you change something in the admin of the site on the web, the changes are saved to the database, so it makes no sense to overtake the site into the application. From options - to make an iframe or something like that, on top of it, to finish the menu for routing and work with it. Under paragraph 2 of the assembly there, but there is ionic . Read, should help

    • Thank. On the first point I am interested in the logic itself with the update. How to do, roughly speaking, sql update? - Alexey
    • Either through dedicated api servers that you write yourself, or through the site admin panel , downloaded via iframe - Vyacheslav Potseluyko
    • Well, I understand that the application is connected in the same way with the base as the site? php? It is not clear what kind of iframe you mean. - Alexey
    • Html tag <ifrane>. The application can consist only of javascript, and can not execute php code locally. Only send requests to the php code on the site server - Vyacheslav Potseluyko
    • In order not to create a new topic, I want to ask you. For example, I created an application on Ionic. It is a set of pages with information, as I described above: "Categories (cars, restaurants, cafes), in each category, 5-10 pages (institutions), in each page (institution) text + pictures." How to get updates to an application ? How to organize admin? Orient please. For example, I want to add another institution to the Cafe category, will I need to reload the app to the store? - Alexey