Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

loading html file from web server using phone gap

i am planning to develop an hybrid application using phone gap. i want to download html pages,images & other resources from a web server instead of keeping it inside the phone gap application bundle.

  1. is it possible to do so
  2. is it the right way to avoid updating the application in the App Store frequently or
  3. will android, iPhone, windows reject our application
like image 747
yokks Avatar asked Feb 15 '13 09:02

yokks


2 Answers

  1. Yes it is possible with phonegap, nothing can prevent you from loading html file from remote source. Here's my other answer on this question: https://stackoverflow.com/a/13996437/1848600

  2. Unfortunately no. While we can say this is true, every error will brake every available app version, while if you create version by version customers will always be able to use previous ones. Also Apple apps store will ban such app.

  3. Android/Win7-8 app will not be rejected, iOS will be rejected immediately. Here's my other answer on this question: https://stackoverflow.com/a/14436328/1848600, no point in repeating.

like image 132
Gajotres Avatar answered Oct 21 '22 12:10

Gajotres


  1. Yes, it's possible.

    you have 2 choices to implement it. simple way is just start on web server url. but, you need a code for including cordova script file that matched target device.

    another way is check & download files. In this case, you need to write some code of phonegap for update-check, download contents & change start URL.

  2. During you have no reason for changing native code, my answer is Yes.

  3. exactly Apple doesn't allow to update app logic without AppStore or load page in web server, but i don't know really it is.

like image 30
cwdoh Avatar answered Oct 21 '22 12:10

cwdoh