# Status bar shows on android when keyboard is visible

**URL:** <https://forum.ionicframework.com/t/status-bar-shows-on-android-when-keyboard-is-visible/51463>\
**Category:** ionic-v1\
**Created:** [May 8, 2016, 9:46am UTC](https://forum.ionicframework.com/t/status-bar-shows-on-android-when-keyboard-is-visible/51463 "2016-05-08T09:46:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![developersnepal](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/developersnepal/32/100506_2.png) [@developersnepal](https://forum.ionicframework.com/u/developersnepal)\
**Post date:** [May 8, 2016, 9:46am UTC](https://forum.ionicframework.com/t/status-bar-shows-on-android-when-keyboard-is-visible/51463/1 "2016-05-08T09:46:47Z")

</div>

I 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

---

<div class="post-metadata">

**Author:** ![flastowizka](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@flastowizka](https://forum.ionicframework.com/u/flastowizka)\
**Post date:** [May 13, 2016, 10:07pm UTC](https://forum.ionicframework.com/t/status-bar-shows-on-android-when-keyboard-is-visible/51463/2 "2016-05-13T22:07:46Z")

</div>

I have the same problem 😕

---

<div class="post-metadata">

**Author:** ![Zozos](https://avatars.discourse-cdn.com/v4/letter/z/e99b99/32.png) [@Zozos](https://forum.ionicframework.com/u/Zozos)\
**Post date:** [May 14, 2016, 10:44pm UTC](https://forum.ionicframework.com/t/status-bar-shows-on-android-when-keyboard-is-visible/51463/3 "2016-05-14T22:44:34Z")

</div>

Same problem.  
Moving back to non fullscreen screws up all the input fields for some reason…😕

---

<div class="post-metadata">

**Author:** ![developersnepal](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/developersnepal/32/100506_2.png) [@developersnepal](https://forum.ionicframework.com/u/developersnepal)\
**Post date:** [May 16, 2016, 8:48am UTC](https://forum.ionicframework.com/t/status-bar-shows-on-android-when-keyboard-is-visible/51463/4 "2016-05-16T08:48:32Z")

</div>

I fixed it by doing some workaround myself. Here is my solution. I hope it helps you guys.

`if (ionic.Platform.isAndroid()) { window.addEventListener("native.hidekeyboard", function () { //show stuff on keyboard hide StatusBar.hide(); window.AndroidFullScreen.immersiveMode(false, false); }); }`

add this code on app.js after the line

`if (window.StatusBar) { StatusBar.hide(); ionic.Platform.fullScreen(); }`

Reply this thread if you are still having this issue.

Thanks,  
Krishna Karki
