cordova-plugin-statusbar icon indicating copy to clipboard operation
cordova-plugin-statusbar copied to clipboard

StatusBarOverlaysWebView ignoring from preference in latest version of android too

Open to-svarghese opened this issue 5 years ago • 3 comments

It is said in the documentation that, will be default for Android versions higher than 5. But in real it is not taking the default value or not even if we set in config.

I had to use StatusBar.overlaysWebView(true); onDeviceReady to make the overlay true in Android.

Cordova-plugin-statusbar: 2.4.3

to-svarghese avatar Dec 02 '20 11:12 to-svarghese

Can you take a moment to test the development version of the plugin? I believe this would be resolved by https://github.com/apache/cordova-plugin-statusbar/pull/171 which hasn't been released yet.

You can install the development version directly from git by using:

cordova plugin add https://github.com/apache/cordova-plugin-statusbar

breautek avatar Dec 02 '20 11:12 breautek

I agree with @to-svarghese that the preference (StatusBarOverlaysWebView) not work.

Only the current temp solution is to use: StatusBar.overlaysWebView(true); At onDeviceReady event

mosabab avatar Feb 03 '21 23:02 mosabab

@breautek are there any changes that can be made in light of this development? That PR works only if the camera cutout is hidden on the Samsung devices mentioned in that article. Otherwise the statusbar is still shifted down further than desired.

CodeWithOz avatar Feb 09 '21 14:02 CodeWithOz