【问题标题】:IBM mobileFirst IOS application screen blackout after direct updateIBM mobileFirst IOS应用程序直接更新后黑屏
【发布时间】:2017-12-07 13:20:40
【问题描述】:

项目详情:

  • 应用程序框架 - Ionic V3.0

  • IBM MobileFirst 服务器(devKit) - 产品版本:8.0.0.00-20170911-123510

  • Application Mobilefirst 版本 - config.xml -

    mfp:platformVersion -8.0.0.00-20170218-003050

    插件名称="cordova-plugin-mfp" spec="8.0.2017021815"

它在安卓中运行良好。但在 IOS 中,软更新完成后,应用程序屏幕变为空白(黑屏)。杀死并重新启动应用程序后,它开始正常工作。

我在 mobilefirst 8 应用程序中实现了Direct update 功能,如下所示:

// Direct Update - Used to trigger a request to the MobileFirst Server, to check for updated web resources. 
WLAuthorizationManager.obtainAccessToken()
.then(
 function () {
   console.log("*** Obtained token successfully.");
 },
 function () {
   console.log("*** Failed obtaining token.");
 }
);

参考:https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/application-development/direct-update/#secure-direct-update

【问题讨论】:

  • 你能试试用最新版本的cordova-plugin-mfp插件构建你的应用吗?

标签: ibm-mobilefirst direct-update


【解决方案1】:

这可能与 Ionic 现在默认使用 WKWebView 的事实有关。见https://ionicframework.com/docs/wkwebview/

这是 WKWebview 上 MobileFirst Direct 更新的已知限制。见https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/product-overview/release-notes/known-issues-limitations/#wkwebview-support-for-ios-cordova-applications

如以上链接所述,使用 wkwebview-engine-localhost 插件确保直接更新继续工作。

【讨论】:

  • 建议作为解决方案的 cordova 插件未安装。它正在引起问题。
【解决方案2】:

它已在最新的 IBM MobileFirst 版本中得到修复。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-03-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多