IBM Worklight - 如何在创建.api / .apk后自定义应用程序? [英] IBM Worklight - How to customize an app after creating its .api/.apk?

查看:101
本文介绍了IBM Worklight - 如何在创建.api / .apk后自定义应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望将我的企业Worklight应用程序分发给许多不同的客户端。

I wish to distribute my enterprise Worklight application to many different clients.

基本上我想要的是给我的客户提供Worklight应用程序的.ipa和.apk文件,以便他们可以将它们上传到自己的应用程序中心。问题是每个应用程序需要略有不同,因为它们必须引用不同的URL以及一些其他属性,例如文本。

Basically what I want to do is give my customer the .ipa and .apk files of the Worklight app so that they may upload them onto their own Application Center. The problem is that each application needs to be slightly different in that there are different URLs they must refer to as well as some other properties such as text.

我想知道是否有一种方法可以从我的客户可以自行更改的属性中读取我的ipa / apk,而无需重建ipa / apk吗?

I was wondering if there's a way to have my ipa/apk read from a properties that my client could change on their own without having to rebuild the ipa/apk?

编辑澄清:

我所指的应用程序不是Application Center应用程序,它是我使用Worklight构建的应用程序,我想使用Application Center分发。我将把我的应用程序卖给整个公司而不是单个用户。一旦公司有了应用程序,他们的员工就需要以某种方式下载它(使用我希望的应用程序中心)。

The application I'm referring to is NOT the Application Center app, it is an application I've built using Worklight that I would like to distribute using the Application Center. I will be selling my application to entire companies rather than single users. Once the company has the application, their employees will need to download it somehow (using the Application Center I'm hoping).

现在我想弄清楚我将如何将我的应用程序分发给我的客户。我的应用程序调用托管在另一台服务器上的另一个应用程序的服务(也就是我之前提到的URL,它不是Worklight URL)。问题是这个URL对于每个客户端会有所不同,据我所知,为了每个客户端更改此URL,我必须为每个客户端重新编译ipa / apk。这是我想避免的。如果可能的话,我想向每个客户端分发相同的ipa / apk,并让他们在某处更改某种参数,以便为其环境设置正确的URL。同样重要的是要注意这个URL不通过适配器,直接存在于客户端。

Right now I'm trying to figure out exactly how I will distribute my application to my clients. My application calls services of another application hosted on another server (aka the "URL" I was referring to before, it is NOT the Worklight URL). The problem is this URL will be different per client and as far as I know right now in order to change this URL per client, I must recompile the ipa/apk for each client. This is what I'd like to avoid. If possible I would like to distribute the same ipa/apk to each client and have them change some sort of parameter somewhere to set the correct URL for their environment. It's also important to note this URL does not go through an adapter, and lives directly in the client.

推荐答案

IMO你是什么要求是不可能的,无论是使用常规原生应用程序还是Worklight混合应用程序(实际上是一个Web应用程序,但包含在本机shell中)。

IMO what you are asking for is not possible, be it with a regular native app or a Worklight hybrid app (that is really a web app but enclosed in a native "shell").

生成.ipa或.apk文件后,它将被关闭,不能(除非破解)打开进行更改(这将是一个安全漏洞)。显然,使用应用旁边的属性文件也是不可能的。

Once you produce the .ipa or .apk file, it is closed and cannot (unless cracked) be opened to make changes (that would be a security breach). Using a "properties file" next to the app is obviously not possible either.

您需要为每个客户创建自定义.ipa / .apk。

You will need to create a custom .ipa/.apk for each customer.

这篇关于IBM Worklight - 如何在创建.api / .apk后自定义应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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