MobileFirst Platform 8.0 beta - 打破cordova插件状态栏 [英] MobileFirst Platform 8.0 beta - breaks cordova-plugin-statusbar

查看:243
本文介绍了MobileFirst Platform 8.0 beta - 打破cordova插件状态栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

添加 cordova-plugin-mfp 后, cordova-plugin-statusbar 不再有效。



重新创建步骤:


  1. 使用statusbar插件创建一个新的Cordova项目: / p>

      cordova创建测试
    cd测试
    cordova平台添加ios
    cordova插件add --save cordova-plugin-statusbar


  2. 将以下文本添加到config.xml:

     < feature name =StatusBar> 
    < param name =ios-packagevalue =CDVStatusBaronload =true/>
    < / feature>
    < preference name =StatusBarStylevalue =default/>


  3. 运行项目并注意状态栏文本是黑色的p>


  4. 更改config.xml中添加的行:

      ; preference name =StatusBarStylevalue =blacktranslucent/> 


  5. 运行项目并注意状态栏文本为白色(hooray! p>


  6. 添加cordova-plugin-mfp插件:

      cordova plugin add --save cordova-plugin-mfp 


  7. 运行项目并记下状态栏


此时,StatusBarStyle更改完全没有任何效果。 p>

解决方案

更新:请参阅以下博客文章解决此问题: https://mobilefirstplatform.ibmcloud.com/blog/2016/06/13/fixing-the-incompatibility-between-cordova-status-bar-plug-in-and-mobilefirst-foundation-8-0/



已确认。



我们打开了一个缺陷,发布MFPF 8.0。感谢您回报问题!



目前没有解决方法,但如果有,我们一定会更新这个答案。


After adding cordova-plugin-mfp, cordova-plugin-statusbar no longer works.

Steps to recreate:

  1. Create a new Cordova project with statusbar plugin:

    cordova create test
    cd test
    cordova platform add ios
    cordova plugin add --save cordova-plugin-statusbar
    

  2. Add the following text to config.xml:

    <feature name="StatusBar">
        <param name="ios-package" value="CDVStatusBar" onload="true" />
    </feature>
    <preference name="StatusBarStyle" value="default" />
    

  3. Run the project and note the status bar text is black (default!).

  4. Change the added line in config.xml:

    <preference name="StatusBarStyle" value="blacktranslucent" />
    

  5. Run the project and note the status bar text is white (hooray!).

  6. Add the cordova-plugin-mfp plugin:

    cordova plugin add --save cordova-plugin-mfp
    

  7. Run the project and note the status bar text is black (boo!).

At this point, the StatusBarStyle changes have no effect at all.

解决方案

Update: Please see the following blog post which addresses this issue: https://mobilefirstplatform.ibmcloud.com/blog/2016/06/13/fixing-the-incompatibility-between-cordova-status-bar-plug-in-and-mobilefirst-foundation-8-0/

Confirmed.

We've opened a defect and this is currently scheduled to be resolved for the GA release of MFPF 8.0. Thanks for reporting!

There is currently no workaround available, but if there will be I'll be sure to update this answer.

这篇关于MobileFirst Platform 8.0 beta - 打破cordova插件状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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