have full screen app developed for both ios and android using ionic.
I have <preference name="Fullscreen" value="true" />
on config.xml and
if (window.StatusBar) {
// org.apache.cordova.statusbar required
StatusBar.hide();
ionic.Platform.fullScreen();
}
// StatusBar.styleDefault();
ionic.Platform.isFullScreen = true;
on app.js.
On the android device when i click on input text field to type something statusbar shows automatically. We i close the keyboard status bar still remains visible until i close it manually. How can i fix this. Please suggest me.
Thanks
To customize it, first pull down the slider bar from the top of the screen. Next, tap on the three vertical dots in the top right corner. Now click on Status bar. You're in.
Here is the work around solution which i figured out myself.
if (ionic.Platform.isAndroid()) {
window.addEventListener("native.hidekeyboard", function () {
StatusBar.hide();
window.AndroidFullScreen.immersiveMode(false, false);
});}
Put this code on app.js in $ionicPlatform.ready
. Feel free to reply on this post if you are still having same issue.
Thanks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With