Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova/Phonegap ignores fullscreen preference in config.xml on iOS

I have defined

<preference name="Fullscreen" value="true"/>

But deploying through Xcode it ignores this. Even if I set hide status bar on the build settings. All my other config.xml settings seem to work, but not this.

like image 251
OliverJ90 Avatar asked Feb 16 '15 17:02

OliverJ90


2 Answers

Fullscreen does not work on iOS 7 and above. Instead you can use Cordova HiddenStatusbarOverlay Plugin to hide the statusbar.

Another way to hide it is to use a gap:config-file element to overwrite the UIViewControllerBasedStatusBarAppearance property:

<gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance" overwrite="true">
    <false/>
</gap:config-file>
like image 159
balzafin Avatar answered Nov 14 '22 23:11

balzafin


use following preference tag. that works fine for me.

<preference name="StatusBarOverlaysWebView" value="true" />
like image 32
Omer Faruk Zorlu Avatar answered Nov 14 '22 23:11

Omer Faruk Zorlu