Page 1 of 1

preference name="StatusBarOverlaysWebView" value="true" - being added to the config.xml after exporting to Xcodes.

Posted: Sat Feb 13, 2016 3:59 pm
by Joe Sharples

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&#46;0' encoding='utf-8'?>
<widget id="appery&#46;io" version="0&#46;0&#46;1" xmlns="http:&#47;&#47;www&#46;w3&#46;org/ns/widgets" xmlns:cdv="http:&#47;&#47;cordova&#46;apache&#46;org/ns/1&#46;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:&#47;&#47;/" />
<allow-intent href="https:&#47;&#47;/" />
<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="&#46;25" />
<preference name="ShowSplashScreenSpinner" value="true" />
<content src="project/index&#46;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&#46;0' encoding='utf-8'?>
<widget id="appery&#46;io" version="0&#46;0&#46;1" xmlns="http:&#47;&#47;www&#46;w3&#46;org/ns/widgets" xmlns:cdv="http:&#47;&#47;cordova&#46;apache&#46;org/ns/1&#46;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:&#47;&#47;/" />
<allow-intent href="https:&#47;&#47;/" />
<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="&#46;25" />
<preference name="ShowSplashScreenSpinner" value="true" />
<content src="project/index&#46;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:&#47;&#47;m&#46;facebook&#46;com" />
<access origin="https:&#47;&#47;graph&#46;facebook&#46;com" />
<access origin="https:&#47;&#47;api&#46;facebook&#46;com" />
<access origin="https:&#47;&#47;&#46;fbcdn&#46;net" />
<access origin="https:&#47;&#47;&#46;akamaihd&#46;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


preference name="StatusBarOverlaysWebView" value="true" - being added to the config.xml after exporting to Xcodes.

Posted: Tue Feb 16, 2016 12:09 pm
by Serhii Kulibaba

Hello Joe,

Please clarify, where did you change it, on the App Settings tab, or in the source file? When you make changes in the Source view for a particular page, the visual editor for that page will not be updated (until you rollback the changes). You can learn more here: http://devcenter.appery.io/tutorials/...


preference name="StatusBarOverlaysWebView" value="true" - being added to the config.xml after exporting to Xcodes.

Posted: Wed Feb 17, 2016 1:56 pm
by Joe Sharples

If i undo all source changes is it possible to change this:
code<preference name="StatusBarOverlaysWebView" value="true" /> /code
in the app settings?


preference name="StatusBarOverlaysWebView" value="true" - being added to the config.xml after exporting to Xcodes.

Posted: Wed Feb 17, 2016 1:57 pm
by Joe Sharples

which ios key change the StatusBarOverlaysWebView value?


preference name="StatusBarOverlaysWebView" value="true" - being added to the config.xml after exporting to Xcodes.

Posted: Sun Feb 21, 2016 12:18 pm
by Illya Stepanov

Hi Joe - We will need to clarify this additionally with our development team.

Also in the same time this could be a project source files synchronization issue, and you can try delete the whole iOS folder in the Source view - make Undo all the source changes on that folder - and after that make all the changes that you need in the very last step of your development process.