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:
wl.remoteDisable.cache.enabled=true
wl.remoteDisable.cache.refreshIntervalInSeconds=1
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 (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
The same code works on Android but not iOS.
IBM MobileFirst Platform Version: 7.1.0.00.20161118-2214