IBM工作灯 - 如何使用自定义服务器URL?自定义、如何使用、服务器、工作灯

2023-09-06 09:51:11 作者:在右耳畔说爱你゛

当你安装一个应用程序工作灯到一个iPhone,在设置有一个参数自定义服务器URL,你可以用它来改变工作灯服务器应用程序的连接。

When you install a Worklight application onto an iPhone, in the settings there's a parameter "Custom Server URL" you can use to change the Worklight Server the app is to connect to.

我在想,如果有这样你可以在Android设备上的动态更改为好,或者我有我想要更改服务器每次重新部署应用程序的参数?

I was wondering if there's such a parameter you can change on the fly on an Android device as well, or do I have to redeploy the application every time I want to change the server?

我也想知道,如果它可以禁用这个功能吗?我想在生产场景,我可能不希望我的用户能够改变他们指向的服务器。

I was also wondering if it's possible to disable this feature? I'm thinking in a production scenario I probably don't want my users to be able to change the server they're pointing to.

推荐答案

事实上,的工作灯设置功能只对开发时间的意思,应该(我会说就算了,必须)的关闭生产(如预期的最终用户是公共及未在内部员工在那里它可以是用于特定的用例...有用)。

Indeed, the Worklight Settings feature is meant only for development time, and should (I would say even, must) be turned off when moving to production (if the intended end-user is the Public and not in-house employees where it may be useful for specific use cases...).

它可为(只)Android和iOS在应用descriptor.xml 在各自的环境中的节点。结果你不必只是它的值更改默认真正

It is available for both (and only) Android and iOS in application-descriptor.xml in their respective environment nodes. You need simply change its value from the default true to false.

在您的iOS从Settings.app结果访问在你的Andr​​oid通过点击设备的物理菜单按钮访问