【问题标题】:IBM MobileFirst Platform is not triggering Remote disable message on iOS for Hybrid appIBM MobileFirst Platform 未在 iOS 上为混合应用程序触发远程禁用消息
【发布时间】: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


    【解决方案1】:

    此行为似乎类似于 APAR PI74295,它已在 20170109-1751(及更高版本)的 MobileFirst Platform Foundation 7.1 版本中得到修复。我怀疑原因是一样的。

    我建议获取更新的 iFix 版本并应用它,并使用它来构建您的应用程序并确认此问题是否已解决。

    【讨论】:

    • 谢谢。我已经应用了 iFix,重新编译了我的所有应用程序工件(WAR、WLAPP、IPA),现在我可以看到访问禁用消息。应用的 iFix 为 (7.1.0.00.20170301-1645)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-08-22
    • 1970-01-01
    • 1970-01-01
    • 2016-11-24
    • 1970-01-01
    • 2015-05-11
    • 1970-01-01
    相关资源
    最近更新 更多