Reputation: 11
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
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