IBM MobileFirst Platform未在iOS for Hybrid应用程序上触发远程禁用消息 [英] IBM MobileFirst Platform is not triggering Remote disable message on iOS for Hybrid app

查看:122
本文介绍了IBM MobileFirst Platform未在iOS for Hybrid应用程序上触发远程禁用消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个混合应用程序,一旦我们将状态从Active更改为Access Disabled,就不显示远程禁用消息,即使应用程序实际上已被禁用,因为我们不能再使用它了。

We have a hybrid application that doesn't show the remote disable message once we change the state from "Active" to "Access Disabled" even though the app is actually getting disabled as we can't use it anymore.

worklight.properties:

worklight.properties:

wl.remoteDisable.cache.enabled=true
wl.remoteDisable.cache.refreshIntervalInSeconds=1

initOption.js(我添加了控制台) .log查看之间的错误):

initOption.js (I have added console.log to see what is the error in between):

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):

console.log (from 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。

The same code works on Android but not iOS.

IBM MobileFirst Platform版本:7.1.0.00.20161118-2214

IBM MobileFirst Platform Version: 7.1.0.00.20161118-2214

推荐答案

此行为与 APAR PI74295 ,已在MobileFirst Platform Foundation 7.1版本中修复,日期为20170109-1751(及更高版本)。我怀疑原因是一样的。

This behavior seems similar to APAR PI74295, which is fixed in MobileFirst Platform Foundation 7.1 builds dated 20170109-1751 (and later). I suspect the cause is the same.

我建议获取更新的iFix构建并应用它,然后用它来构建你的应用程序并确认这个问题是否是已解决。

I would recommend to obtain a more recent iFix build and apply it, and use that to build your application and confirm if this issue is resolved.

这篇关于IBM MobileFirst Platform未在iOS for Hybrid应用程序上触发远程禁用消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆