Updating javascript code in Cordova app after it has been published in the app store [closed]

心不动则不痛 提交于 2019-12-01 18:36:26

Question is old, but the problem is still actual. Recently there's been released a Cordova plugin, called Hot code push plugin. You can check him out. Using it you can update all your web content, that is packed in the application: JS, CSS, HTML, images and so on. But if you want to add some new plugins to the app - you'll have to release new version on the stores.

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

About the Apple policy: you can update your application like that, but only if that doesn't change the initial purpose of the app. If application was released as a calculator, but after the update it becomes a game - Apple can ban you.

Packages submitted to app stores are code signed. This is one of the many mechanisms in place to ensure package integrity. Which leads to updating executing code without an app update not a viable option.

You can include external JS files in very limited capacity (think childbrowser). PhoneGap build has a feature called Hydration builds. But that works only during development.

For full app updates, HockeyKit is an option too.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!