Cordova / Phonegap: Live update codebase

后端 未结 8 2056
半阙折子戏
半阙折子戏 2021-02-07 19:17

We are using Cordova along with AngularJS for iOS and Android applications.

One big disadvantage of iOS are the long review times from Apple. In Google\'s Playstore, yo

8条回答
  •  不知归路
    2021-02-07 19:38

    I don't know of any ready made solutions for that, but it should be easy enough to program something like this on your own. Here are some points to get you started and to consider:

    • If you want to distribute updates via zip, you need a nativ plugin which handles the extraction
    • You might not be able to override files in the default location of your app (depending on OS). So, all files you want to update in the future have to sit in a folder your app has read/write access to (iOS: e.g. Library or Documents folder)
    • Now you simply need to download the zip-package, unpack the zip to your chosen directory, and restart/reload your app.
    • you will not be able to update native plugins!
    • Apple probably doesn't like that, since you are able to change the whole application without passing their review process

提交回复
热议问题