Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StatusBarOverlaysWebView ignoring from preference in latest version of android too #209

Open
to-svarghese opened this issue Dec 2, 2020 · 3 comments

Comments

@to-svarghese
Copy link

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

@breautek
Copy link
Contributor

breautek commented Dec 2, 2020

Can you take a moment to test the development version of the plugin? I believe this would be resolved by #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

@mosabab
Copy link

mosabab commented Feb 3, 2021

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

@CodeWithOz
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants