ben-ng / phonegap-air

Put your web app in the iOS App Store and update it whenever you want.
304 stars 26 forks source link

How does this work? #3

Closed herkyl closed 9 years ago

herkyl commented 9 years ago

Could you give some kind of description how does this work? I have tried building a similar system, I stored all assets in localstorage but didn't go too far with it.

nicinabox commented 9 years ago

From my previous research the basic process is this:

  1. Fetch remote manifest
  2. Check for newer files
  3. Download newer files
  4. Reload the app

The app’s directory isn’t writable, so typically those files are stored in the app’s Documents folder and served from there.

moduscreate commented 9 years ago

Apple has poo-poo'ed this approach in the past. I think this is best for any non-apple HTML5 app.

Pretty fucking sweet, if you ask me.

Jay Garcia -------------------------------------------- CTO & Co-founder, Modus Create Inc. Author of Ext JS & Sencha Touch in Action

moduscreate.com @ModusCreate 301.785.6030

This electronic mail transmission contains information from Modus Create, Inc. which may be privileged and/or confidential. The information contained herein is for the exclusive use of the addressee named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this information is prohibited. If you have received this electronic mail transmission in error, please notify us by telephone *(301-785-6030) or by electronic mail (*contact@moduscreate.com contact@moduscreate.com ).

On Mon, Nov 17, 2014 at 2:16 PM, Nic Aitch notifications@github.com wrote:

From my previous research the basic process is this:

  1. Fetch remote manifest
  2. Check for newer files
  3. Download newer files
  4. Reload the app

The app’s directory isn’t writable, so typically those files are stored in the app’s Documents folder and served from there.

— Reply to this email directly or view it on GitHub https://github.com/ben-ng/phonegap-air/issues/3#issuecomment-63358621.

ben-ng commented 9 years ago

@nicinabox has the gist of it. I'll do a write up in the readme as well.