在应用商店中发布之后,在Cordova应用中更新JavaScript代码 [英] Updating javascript code in Cordova app after it has been published in the app store

查看:394
本文介绍了在应用商店中发布之后,在Cordova应用中更新JavaScript代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一些应用程序,客户希望在应用程序交付后实施设计更改,添加新的内容字段等。此外,目前的应用程序是通过RhoMobile完成的,但我打算切换到Cordova。

I'm developing some apps where the clients wants to implement design changes, adding new content fields etc after the app has been delivered. Also at the moment the apps are done through RhoMobile but I'm planning to switch away to Cordova.

到目前为止,我只是做到这一切,因为它来了,然后将其发出,由权力批准。但是对于来自客户端的相对较小的更改,然后等待应用程序再次获得批准...当然,这也是一个管理问题,当他们不认为事情通过足够,但我只是想看看是否有一种方式的抵消。 :)

So far I'm just doing it all as it comes along and then sending it off to be approved by the powers that be. But for relatively small changes coming from the clients and then waiting for the app to get approved again… Sure, this is also a management issue when they don't think things through enough, but I'm just trying to see if there's a way of offsetting that. :)

例如,我刚刚被要求在应用程序中添加成员资格的概述页面。我已经在会员页面的发货应用程序中定义了一个页面,所以如果我只能更新手机上运行的javascript,添加额外的数据不会那么难。

For example I just got asked to add an overview page for memberships in the app. I already have a page defined in the shipped app for the membership page, so adding the extra data wouldn't be so hard if I could just update the javascript that is running on the phone already.


  1. 我是否允许根据苹果政策执行此操作?

  2. 是否有任何预构建的框架来处理此问题,注定要自己看看它? :)

  3. 我还没有想到其他替代方案吗?


推荐答案

问题很老,但问题仍然存在。最近发布了一个Cordova插件,名为热代码推送插件。你可以检查他。使用它,你可以更新所有的Web内容,这是包装在应用程序:JS,CSS,HTML,图像等。但是如果你想在应用程序中添加一些新的插件,你必须在商店上发布新版本。

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.

不幸的是,现在这个插件只支持iOS和Android,但也许这就足够了。

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

关于Apple政策:你可以更新你的应用程序,但只有这不改变最初的目的, app。如果应用程序作为计算器发布,但更新后它成为一个游戏 - 苹果可以禁止你。

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.

这篇关于在应用商店中发布之后,在Cordova应用中更新JavaScript代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆