Peter
Peter

Reputation: 11835

Phonegap build Status bar overlaps webview in Fullscreen Mode

I built an app with PhoneGap Build for Android. It works fine until you open any text input - after that status bar overlaps webview and stays there.

https://i.sstatic.net/CxZX2.png
https://i.sstatic.net/m6noH.png

This is the same question like this one Phonegap: Android 6 status bar overlaps webview

but i don't want to disable the Full-Screenmode.

I think it is not possible to force to disable the Fullscreen mode (all the time). Right?

If so: My idea/workaround is to hide the statusBar after focus out. If this possible with phonegab build?

Thanks in advance!

Upvotes: 1

Views: 421

Answers (1)

Peter
Peter

Reputation: 11835

My workaround:
add this to your config.xml

<plugin name="cordova-plugin-statusbar" source="npm"/>

and add this to your in your js file

$(document).click(function()
{
    StatusBar.hide();                 
});

Upvotes: 0

Related Questions