Dhayu Mehta
Dhayu Mehta

Reputation: 11

Have status bar visible in full screen mode Ionic for android and iOS

Hey I am working on an application using Ionic/Cordova and I was wondering if there is a way to allow the application to be in full screen mode and also to be able to show the status bar ?

I am currently using this in my config.xml file:

Any help would be greatly appreciated.

Upvotes: 1

Views: 954

Answers (1)

Muhammad Usman Ghani
Muhammad Usman Ghani

Reputation: 1279

if (ionic.Platform.isAndroid()) {
     window.addEventListener("native.hidekeyboard", function () { 
     StatusBar.hide();
     window.AndroidFullScreen.immersiveMode(false, false);
       });}

put this code in app.js in $ionicPlatform.ready.

Upvotes: 1

Related Questions