5

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.

OliverJ90
  • 1,291
  • 2
  • 21
  • 42

2 Answers2

4

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>
balzafin
  • 1,416
  • 1
  • 17
  • 28
  • 2
    I just want to add to this that you can modify the plist file in your cordova project with the following records: `Status bar is initially hidden: YES` `View controller-based status bar appearance NO` – OliverJ90 Mar 17 '15 at 13:15
  • 1
    this combination **works** for me, too, testing on emulator running **iOS 8.2** – amenthes Sep 09 '15 at 09:37
  • Hiding the status bar gets your app rejected on iOS 11 – Paranoid Android Oct 17 '17 at 17:05
3

use following preference tag. that works fine for me.

<preference name="StatusBarOverlaysWebView" value="true" />
Omer Faruk Zorlu
  • 371
  • 1
  • 18
  • Don;t know about previous versions, but this thing does not work and it is not part of the recommended approaches: https://cordova.apache.org/docs/en/latest/config_ref/index.html – Andry Apr 21 '16 at 08:14
  • @IdoRan Remember to add this plugin (for which this preference is for) https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-statusbar/ – Stefan Rein May 23 '19 at 11:54