MobileFirst Platform 8.0 beta - 打破cordova插件状态栏 [英] MobileFirst Platform 8.0 beta - breaks cordova-plugin-statusbar
问题描述
添加 cordova-plugin-mfp
后, cordova-plugin-statusbar
不再有效。
重新创建步骤:
-
使用statusbar插件创建一个新的Cordova项目: / p>
cordova创建测试
cd测试
cordova平台添加ios
cordova插件add --save cordova-plugin-statusbar
-
将以下文本添加到config.xml:
< feature name =StatusBar>
< param name =ios-packagevalue =CDVStatusBaronload =true/>
< / feature>
< preference name =StatusBarStylevalue =default/>
-
运行项目并注意状态栏文本是黑色的p>
-
更改config.xml中添加的行:
; preference name =StatusBarStylevalue =blacktranslucent/>
-
运行项目并注意状态栏文本为白色(hooray! p>
-
添加cordova-plugin-mfp插件:
cordova plugin add --save cordova-plugin-mfp
-
运行项目并记下状态栏
此时,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:
Create a new Cordova project with statusbar plugin:
cordova create test cd test cordova platform add ios cordova plugin add --save cordova-plugin-statusbar
Add the following text to config.xml:
<feature name="StatusBar"> <param name="ios-package" value="CDVStatusBar" onload="true" /> </feature> <preference name="StatusBarStyle" value="default" />
Run the project and note the status bar text is black (default!).
Change the added line in config.xml:
<preference name="StatusBarStyle" value="blacktranslucent" />
Run the project and note the status bar text is white (hooray!).
Add the cordova-plugin-mfp plugin:
cordova plugin add --save cordova-plugin-mfp
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屋!