Updating javascript code in a Cordova application after publishing it in the app store

I am developing some applications in which clients want to implement design changes by adding new content fields, etc. after the application has been delivered. Also, applications are currently running through RhoMobile, but I plan to switch to Cordoba.

So far, I just do all this when it happens, and then send it to be approved by the forces that will be. But for relatively small changes coming from clients, and then expecting the application to get approval again ... Of course, this is also a management problem when they don’t think about it enough, but I'm just trying to figure out if there is a way to compensate for this: )

For example, I was simply asked to add a review page for membership in the application. I already have a page defined in the submitted application for the membership page, so adding extra data will not be so difficult if I can just update javascript that already works on the phone.

  • Can I do this in accordance with Apple policies?
  • Are there any pre-built frameworks for solving this problem, or am I destined to look at it myself? :)
  • Are there any other alternatives that I don't think about?
+4
source share
2 answers

The question is old, but the problem is still relevant. The Cordova plugin, called the hot code plugin, has recently been released. You can check it out. Using it, you can update all your web content that is packaged in the application: JS, CSS, HTML, images, etc. But if you want to add new plugins to the application, you will have to release a new version in stores.

Unfortunately, now this plugin only supports iOS and Android, but perhaps this will be enough.

About Apple policy: you can update your application in this way, but only if this does not change the original purpose of the application. If the application was released as a calculator, but after the update it becomes a game - Apple may ban you.

+5
source

Packages sent to application stores have a code signed. This is one of many mechanisms to ensure package integrity. This leads to updating the executable code without updating the application, and not for a viable option.

You can include external JS files in very limited capacity (think childbrowser ). The PhoneGap assembly has a Hydration Build feature. But this only works during development.

For full app updates, HockeyKit is also an option.

+2
source

Source: https://habr.com/ru/post/1442403/


All Articles