IBM MobileFirst Platform 未在 iOS 上触发混合应用程序的远程禁用消息
IBM MobileFirst Platform is not triggering Remote disable message on iOS for Hybrid app
我们有一个混合应用程序,一旦我们将状态从 "Active" 更改为 "Access Disabled",它就不会显示远程禁用消息,即使该应用程序实际上已被禁用,因为我们无法使用它不再。
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
此行为似乎类似于 APAR PI74295,后者已在日期为 20170109-1751(及更高版本)的 MobileFirst Platform Foundation 7.1 构建中修复。我怀疑原因是一样的。
我建议获取更新的 iFix 版本并应用它,然后使用它来构建您的应用程序并确认此问题是否已解决。
我们有一个混合应用程序,一旦我们将状态从 "Active" 更改为 "Access Disabled",它就不会显示远程禁用消息,即使该应用程序实际上已被禁用,因为我们无法使用它不再。
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
此行为似乎类似于 APAR PI74295,后者已在日期为 20170109-1751(及更高版本)的 MobileFirst Platform Foundation 7.1 构建中修复。我怀疑原因是一样的。
我建议获取更新的 iFix 版本并应用它,然后使用它来构建您的应用程序并确认此问题是否已解决。