-
Notifications
You must be signed in to change notification settings - Fork 491
Closed
Labels
Description
I'm trying to fix issue with StatusBarOverlaysWebView, but it's not working on Android 9.
How it looks like on Android 9: https://ibb.co/BZ4KVpB
How it looks like on PhoneGap Developer Application: https://ibb.co/W5574HC
I tried every possible combination editing config.xml. Now my config.xml look like this:
<platform name="android">
<preference name="StatusBarStyle" value="lightcontent" />
<preference name="android-minSdkVersion" value="21" />
<allow-intent href="market:*" />
<preference name="StatusBarBackgroundColor" value="#000000" />
<preference name="StatusBarDefaultScrollToTop" value="false" />
<preference name="StatusBarOverlaysWebView" value="true" />
</platform>
I run plugin with JS and it gives me normally object of StatusBar:
document.addEventListener('deviceready', fullScreen);
function fullScreen() {
AndroidFullScreen.setSystemUiVisibility(AndroidFullScreen.SYSTEM_UI_FLAG_FULLSCREEN | AndroidFullScreen.SYSTEM_UI_FLAG_LOW_PROFILE);
console.log(StatusBar);
if (cordova.platformId == 'android') {
StatusBar.overlaysWebView(true);
StatusBar.backgroundColorByHexString('#33000000');
}
}
Is there any trick about this?