【发布时间】:2017-03-28 15:04:12
【问题描述】:
我们有一个混合应用程序,一旦我们将状态从“活动”更改为“访问已禁用”,它就不会显示远程禁用消息,即使该应用程序实际上已被禁用,因为我们无法再使用它。
worklight.properties:
wl.remoteDisable.cache.enabled=true
wl.remoteDisable.cache.refreshIntervalInSeconds=1
initOption.js(我已经添加了console.log,看看中间的错误是什么):
onErrorRemoteDisableDenial : function (message, downloadLink) {
console.log("onErrorRemoteDisableDenial ......... Triggered");
WL.SimpleDialog.show(
appStoreUpdateTitle,
message,
[{text: notNowButton, handler: function() {WL.App.close();}},
{text: downloadNewVersionBtn, handler: function() {WL.App.openURL(downloadLink, "_blank");}}]
);
console.log("onErrorRemoteDisableDenial ......... Endded");
},
console.log(来自 xCode):
2017-03-28 10:51:57.312 GRSMobile[73598:5607189] onErrorRemoteDisableDenial ......... Triggered
2017-03-28 10:51:57.315 GRSMobile[73598:5607189] Warning: Attempt to present <UIAlertController: 0x7f9e29e2c000> on <CDVViewController: 0x7f9e29dd0290> whose view is not in the window hierarchy!
2017-03-28 10:51:57.315 GRSMobile[73598:5607189] onErrorRemoteDisableDenial ......... Endded
相同的代码适用于 Android,但不适用于 iOS。
IBM MobileFirst 平台版本:7.1.0.00.20161118-2214
【问题讨论】:
标签: ios ibm-mobilefirst