I have set the preference to "false" in my appery config.xml file:
" code<preference name="StatusBarOverlaysWebView" value="false" /> /code"
I understand that when exporting more lines are added to the config.xml from the Cordova plugins. But the problem is that the same line is being added, with a different value.
so in appery i set it as "false", but when i export I have 2 conflicting lines, the orginial one I added set to "false", and the extra line being added when I export but with the value set to "true".
How can I stop the line: " code<preference name="StatusBarOverlaysWebView" value="true" /> /code" from being added when I export.
or how can I change it so it says "false" instead of "true"?
Regards,
Joe
This is my config.xml file in appery under the 'Source' tab.
code
<?xml version='1.0' encoding='utf-8'?>
<widget id="appery.io" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<preference name="DisallowOverscroll" value="true" />
<preference name="AllowInlineMediaPlayback" value="false" />
<preference name="BackupWebStorage" value="local" />
<preference name="EnableViewportScale" value="false" />
<preference name="KeyboardDisplayRequiresUserAction" value="true" />
<preference name="MediaPlaybackRequiresUserAction" value="false" />
<preference name="SuppressesIncrementalRendering" value="false" />
<preference name="GapBetweenPages" value="0" />
<preference name="PageLength" value="0" />
<preference name="PaginationBreakingMode" value="page" />
<preference name="PaginationMode" value="unpaginated" />
<allow-intent href="itms:" />
<allow-intent href="itms-apps:" />
<allow-intent href="http:///" />
<allow-intent href="https:///" />
<allow-intent href="tel:" />
<allow-intent href="sms:" />
<allow-intent href="mailto:" />
<allow-intent href="geo:" />
<!-- Splash Screen -->
<preference name="TopActivityIndicator" value="gray" />
<preference name="AutoHideSplashScreen" value="true" />
<preference name="FadeSplashScreen" value="true" />
<preference name="FadeSplashScreenDuration" value=".25" />
<preference name="ShowSplashScreenSpinner" value="true" />
<content src="project/index.html" />
<access origin="*" />
<feature name="LocalStorage">
<param name="ios-package" value="CDVLocalStorage" />
</feature>
<!-- Custom Changes below -->
<!-- Changed to TRUE <preference name="DisallowOverscroll" value="true" /> -->
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" />
<param name="onload" value="true" />
</feature>/code
code <preference name="StatusBarOverlaysWebView" value="false" /> /code
Code: Select all
code<preference name="StatusBarStyle" value="lightcontent" />
<preference name="StatusBarBackgroundColor" value="#007aff" />
<!-- Custom Changes above -->
</widget>
/code
This is the code after exporting as an Xcode project:
code
<?xml version='1.0' encoding='utf-8'?>
<widget id="appery.io" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<preference name="DisallowOverscroll" value="true" />
<preference name="AllowInlineMediaPlayback" value="false" />
<preference name="BackupWebStorage" value="local" />
<preference name="EnableViewportScale" value="false" />
<preference name="KeyboardDisplayRequiresUserAction" value="true" />
<preference name="MediaPlaybackRequiresUserAction" value="false" />
<preference name="SuppressesIncrementalRendering" value="false" />
<preference name="GapBetweenPages" value="0" />
<preference name="PageLength" value="0" />
<preference name="PaginationBreakingMode" value="page" />
<preference name="PaginationMode" value="unpaginated" />
<allow-intent href="itms:" />
<allow-intent href="itms-apps:" />
<allow-intent href="http:///" />
<allow-intent href="https:///" />
<allow-intent href="tel:" />
<allow-intent href="sms:" />
<allow-intent href="mailto:" />
<allow-intent href="geo:" />
<preference name="TopActivityIndicator" value="gray" />
<preference name="AutoHideSplashScreen" value="true" />
<preference name="FadeSplashScreen" value="true" />
<preference name="FadeSplashScreenDuration" value=".25" />
<preference name="ShowSplashScreenSpinner" value="true" />
<content src="project/index.html" />
<access origin="*" />
<feature name="LocalStorage">
<param name="ios-package" value="CDVLocalStorage" />
</feature>
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" />
<param name="onload" value="true" />
</feature>/code
Code: Select all
[u]code <preference name="StatusBarOverlaysWebView" value="false" /> /code[/u]code
<preference name="StatusBarStyle" value="lightcontent" />
<preference name="StatusBarBackgroundColor" value="#007aff" />
<feature name="GAPlugin">
<param name="ios-package" value="GAPlugin" />
</feature>
<feature name="Battery">
<param name="ios-package" value="CDVBattery" />
</feature>
<feature name="Camera">
<param name="ios-package" value="CDVCamera" />
</feature>
<preference name="CameraUsesGeolocation" value="false" />
<feature name="Console">
<param name="ios-package" value="CDVLogger" />
</feature>
<feature name="Contacts">
<param name="ios-package" value="CDVContacts" />
</feature>
<feature name="Accelerometer">
<param name="ios-package" value="CDVAccelerometer" />
</feature>
<feature name="Compass">
<param name="ios-package" value="CDVCompass" />
</feature>
<feature name="Device">
<param name="ios-package" value="CDVDevice" />
</feature>
<feature name="Notification">
<param name="ios-package" value="CDVNotification" />
</feature>
<preference name="AndroidPersistentFileLocation" value="Internal" />
<feature name="File">
<param name="ios-package" value="CDVFile" />
<param name="onload" value="true" />
</feature>
<feature name="Geolocation">
<param name="ios-package" value="CDVLocation" />
</feature>
<feature name="Globalization">
<param name="ios-package" value="CDVGlobalization" />
</feature>
<feature name="InAppBrowser">
<param name="ios-package" value="CDVInAppBrowser" />
</feature>
<feature name="NetworkStatus">
<param name="ios-package" value="CDVConnection" />
</feature>
<feature name="SplashScreen">
<param name="ios-package" value="CDVSplashScreen" />
<param name="onload" value="true" />
</feature>/code
code
Code: Select all
<preference name="StatusBarOverlaysWebView" value="true" /> /code [/u]
code
<feature name="Vibration">
<param name="ios-package" value="CDVVibration" />
</feature>
<feature name="FacebookConnectPlugin">
<param name="ios-package" value="FacebookConnectPlugin" />
<param name="onload" value="true" />
</feature>
<plugin name="FacebookConnectPlugin" value="FacebookConnectPlugin" />
<access origin="https://m.facebook.com" />
<access origin="https://graph.facebook.com" />
<access origin="https://api.facebook.com" />
<access origin="https://.fbcdn.net" />
<access origin="https://.akamaihd.net" />
<feature name="BarcodeScanner">
<param name="ios-package" value="CDVBarcodeScanner" />
</feature>
<feature name="PushNotification">
<param name="ios-package" value="PushPlugin" />
</feature>
<feature name="FileTransfer">
<param name="ios-package" value="CDVFileTransfer" />
</feature>
<feature name="Capture">
<param name="ios-package" value="CDVCapture" />
</feature>
<feature name="Media">
<param name="ios-package" value="CDVSound" />
</feature>
</widget>
/code