IBM Worklight:将应用程序上载到Worklight Server / App Store [英] IBM Worklight: Upload application to Worklight Server / App Store

查看:103
本文介绍了IBM Worklight:将应用程序上载到Worklight Server / App Store的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Direct Update,移动应用程序可以使用新版本的Web资源自动更新。为了更新本机资源,必须将新版本的应用程序上载到应用程序商店。

With Direct Update, the mobile application can be automatically update with a new version of the web resources. In order to update the native resource, a new version of application must be uploaded to application store.

考虑我的Worklight应用程序更新的情况已经在应用程序商店中的Web资源代码更新。

Consider the case that I have an update for my Worklight app with both native and web resources code update which has already been in application store.

问题:


  1. 以下是更新应用程序的正确方法吗?

  1. Is the following a correct way to update the app?

步骤1.打包应用程序。 ipa / .apk(使用本机+ Web代码)并提交到应用程序商店

步骤2.将更新的.wlapp文件(带有Web代码)部署到Worklight Server。

Step 1. Package the app in .ipa / .apk (with native + web code) and submit to application store
Step 2. Deploy an updated .wlapp file (with web code) to Worklight Server.

在应用程序商店中,我可以在上传应用程序时指定应用程序版本。将.wlapp部署到Worklight Server后,应用程序版本是否会自动递增?

In application store, I can specify the application version when uploading the application. Will the application version be incremented automatically once I deploy the .wlapp to Worklight Server?

如果用户未在应用程序商店中更新其应用程序并打开应用程序,由于Worklight Server中有新的Web资源更新,这意味着将有一个直接更新警告框,提示用户下载最新的应用程序,在这种情况下,只会下载Web资源。当本机代码和网络代码相关时会出现一些问题吗?

If the user does not update his application in application store and open the application, since there is a new web resource update in Worklight Server, it means that there will be a direct update alert box to prompt the user to download the latest application and in this case only web resource will be downloaded. There are some problems when the native code and web code are correlated?

非常感谢。

推荐答案


  1. 这基本上是正确的步骤顺序,是的。

  1. This would essentially be the correct order of steps, yes.

但是,既然你说你正在更新原生资源和网络资源,我会确保现有的应用程序可以只使用网络资源更新(不更新)本机),因为一旦将.wlapp部署到Worklight Server,现有用户将收到直接更新。



如果这个场景不是你想支持的场景,那么在application-descriptor.xml中你还应该增加 version =的值环境元素中的属性。在执行此操作后构建应用程序时,这将创建一个新的.wlapp(例如:myProjectNameMyAppName-1.1.wlapp而不是......- 1.0.wlapp)。


这意味着现有1.0用户将不会收到任何直接更新,除非您将更新的...- 1.0.wlapp部署到Worklight Server。

However, since you say you're updating both the native and web resources, I would make sure that the existing app can work with just the web resources update (without updating the native), because once deploying the .wlapp to the Worklight Server, existing users will receive a Direct Update.

If this scenario is not one you want to support, then in application-descriptor.xml you should also up the value of the version=" " attribute in the environment's element. When building the app after doing so, this will create a new .wlapp (for example: myProjectNameMyAppName-1.1.wlapp instead of ...-1.0.wlapp).
This means that the existing 1.0 users will not receive any Direct Updates, unless you deploy an updated ...-1.0.wlapp to the Worklight Server.

关于上述问题,不,应用程序版本不会自动递增,而是需要手动控制的。



另外,我不认为版本值是你在应用程序商店界面中控制的东西...

IFAIK应用程序版本可以改变在为Android生成.apk之前(以及与其他环境类似的方式)创建.ipa for iOS和AndroidManifest.xml之前的Xcode。

In relation to the above, no, the application version is not incremented automatically, it is something you need to control manually.

Also, I don't think the version value is something you control in the application store interface...
IFAIK the application version is changeable in Xcode prior to creating the .ipa for iOS and in AndroidManifest.xml prior to generating the .apk for Android (and in similar fashion for other environments).

编辑:实际上...我认为更改application-descriptor.xml中的版本值也会增加应用程序的版本号。需要查看最终结果(在AndroidManifest.xml或Xcode项目中,在Xcode中)。

Actually... I think that changing the version value in application-descriptor.xml will also up the application's version number. Need to look at the end result (in AndroidManifest.xml or the Xcode project, in Xcode).

这实际上取决于应用程序的行为和你是否有能力在面对更新时写出它。我在上面的#1中略微介绍了这一点。

This would really depend on the behavior of your application and how resilient you've written it to be in the face of updates. I have slightly covered this in #1 above.

除了在理论上谈论它之外我会建议实际上跳一下将应用程序上传到应用程序商店,然后私下测试它。使用谷歌播放这是最方便的,发布应用程序几乎是即时的。

Other than talking about it theoretically I would suggest taking the jump actually upload an app to an application store, and test it privately, of course. This would be the most convenient to do using Google Play where publishing an app is near-instant.

这篇关于IBM Worklight:将应用程序上载到Worklight Server / App Store的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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