直接更新在 MobileFirst Studio v7.1 中不起作用

The direct update doesn't work in MobileFirst Studio v7.1

我正在 MF Studio 7.1 中进行演示,但无法在工作室中进行直接更新,我至少在 3 个工作站上进行了测试。有人知道为什么吗?

请参阅直接更新教程,特别是以下部分:https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/advanced-client-side-development/using-direct-update-to-quickly-update-your-application/#underTheHood


因为 MobileFirst Platform Foundation Server 7.1 会话独立,这也会影响直接更新。
何时检查直接更新的设置现在基于 tokens;只有在令牌过期后才会检查更新。

您可以通过以下方式进行调整:

  1. 从 authenticationConfig.xml 中使用的安全测试中删除 wl_DirectUpdate 领域,而是显式调用 WL.Client.checkForDirectUpdate API 来检查更新

  2. 将 your-project\server\conf\worklight.properties 文件中的 wl.realm.expiration.directUpdate 值更改为较低的值。

生产环境注意事项:值越低,网络流量越大。该值应谨慎配置。