设置状态栏样式
<preference name="StatusBarStyle" value="styleDefault" />
<?xml version='1.0' encoding='utf-8'?> <widget id="com.dls" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>soober</name> <description> A sample Apache Cordova application that responds to the deviceready event. </description> <author email="dev@cordova.apache.org" href="http://cordova.io"> Apache Cordova Team </author> <content src="index.html" /> <access origin="*" /> <allow-intent href="http://*/*" /> <allow-intent href="https://*/*" /> <allow-intent href="tel:*" /> <allow-intent href="sms:*" /> <allow-intent href="mailto:*" /> <allow-intent href="geo:*" /> <platform name="android"> <allow-intent href="market:*" /> <icon density="ldpi" src="res/android/ldpi.png" /> <icon density="mdpi" src="res/android/mdpi.png" /> <icon density="hdpi" src="res/android/hdpi.png" /> <icon density="xhdpi" src="res/android/xhdpi.png" /> <icon density="xxhdpi" src="res/android/xxhdpi.png" /> <icon density="xxxhdpi" src="res/android/xxxhdpi.png" /> <preference name="StatusBarOverlaysWebView" value="false" /> <preference name="StatusBarStyle" value="styleDefault" /> </platform> <platform name="ios"> <allow-intent href="itms:*" /> <allow-intent href="itms-apps:*" /> <icon height="180" src="res/ios/icon-60@3x.png" width="180" /> <icon height="60" src="res/ios/icon-60.png" width="60" /> <icon height="120" src="res/ios/icon-60@2x.png" width="120" /> <icon height="76" src="res/ios/icon-76.png" width="76" /> <icon height="152" src="res/ios/icon-76@2x.png" width="152" /> <icon height="40" src="res/ios/icon-40.png" width="40" /> <icon height="80" src="res/ios/icon-40@2x.png" width="80" /> <icon height="57" src="res/ios/icon.png" width="57" /> <icon height="114" src="res/ios/icon@2x.png" width="114" /> <icon height="72" src="res/ios/icon-72.png" width="72" /> <icon height="144" src="res/ios/icon-72@2x.png" width="144" /> <icon height="29" src="res/ios/icon-small.png" width="29" /> <icon height="58" src="res/ios/icon-small@2x.png" width="58" /> <icon height="50" src="res/ios/icon-50.png" width="50" /> <icon height="100" src="res/ios/icon-50@2x.png" width="100" /> <preference name="StatusBarOverlaysWebView" value="true" /> <preference name="StatusBarStyle" value="styleDefault" /> <preference name="WebViewBounce" value="false" /> <preference name="DisallowOverscroll" value="true" /> </platform> <plugin name="cordova-plugin-whitelist" spec="1" /> <plugin name="cordova-plugin-inappbrowser" spec="~3.1.0" /> <plugin name="cordova-plugin-alipay-v2" spec="^2.0.0"> <variable name="APP_ID" value="2016101600700605" /> </plugin> <plugin name="cordova-plugin-statusbar" spec="^2.4.3" /> </widget>