Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Status bar shows on android when keyboard is visible

Tags:

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

like image 600
Krishna Karki Avatar asked May 08 '16 09:05

Krishna Karki


People also ask

How do I change my status bar settings?

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.


1 Answers

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

like image 143
Krishna Karki Avatar answered Sep 28 '22 04:09

Krishna Karki