OliverJ90
OliverJ90

Reputation: 1311

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.

Upvotes: 5

Views: 12708

Answers (2)

Omer Faruk Zorlu
Omer Faruk Zorlu

Reputation: 380

use following preference tag. that works fine for me.

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

Upvotes: 3

balzafin
balzafin

Reputation: 1426

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>

Upvotes: 4

Related Questions