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

Android 35 StatusBarOverlaysWebView false not working #274

Open
3 tasks done
mannisc opened this issue Sep 24, 2024 · 9 comments
Open
3 tasks done

Android 35 StatusBarOverlaysWebView false not working #274

mannisc opened this issue Sep 24, 2024 · 9 comments

Comments

@mannisc
Copy link

mannisc commented Sep 24, 2024

Bug Report

Problem

I have an Android API 35 Emulator (Pixel 8 Pro API 35) and StatusBarOverlaysWebView set to false in config.xml. The content of the webview is behind the statusbar (and notch, which would be okay). With Android API 34 and the same device (Pixel 8 Pro API 34) the content is below the statusbar. Also the Android navigation Item (line) in the bottom is not overlayed.

What is expected to happen?

With Android API 35 the statusbar should also be respected if StatusBarOverlaysWebView is set to false (and also the navigation at the bottom)

What does actually happen?

The App is fullscreen and underneath the statusbar.

Information

Create Pixel 8 Pro API 35 Emulator and set StatusBarOverlaysWebView to false.

Command or Code

Environment, Platform, Device

Version information

Latest cordova and cordova-plugin-statusbar versions.

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@ksch10bob
Copy link

@mannisc
we experience the same behavior.
to be more precise
We also have StatusBarOverlaysWebView set to false in config.xml.

Wenn we build our App with android-targetSdkVersion ste to 35 with 35.0.0 Buildtools and deploy it to an Api 35 emulator the webviewcontent is behind the statusbar.

This is a Behaviorchange in Android 15
https://developer.android.com/about/versions/15/behavior-changes-15#edge-to-edge

We hope the statusbar plugin can address this behavior change

@cmartin81
Copy link

I have the same problem. Did you manged to fix this?

@cmartin81
Copy link

@mannisc and @ksch10bob I did managed to fix it temporarily. I added the following inside the config.xml file:

        <config-file parent="/resources/style" target="app/src/main/res/values/themes.xml">
            <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
        </config-file>

@ksch10bob
Copy link

@cmartin81
seems like a solution and not a temporarily fix to me.
Thanks for that.

@repotoolsapps

This comment was marked as off-topic.

@breautek

This comment was marked as off-topic.

@BenLaKnet
Copy link

Is this update is for new feature of android 35 with edge to edge issues?
I have two issues with Google Play, one of them is for Background Color of statusbar and the other for edge-to-edge.
Should I update to new version of plugin, I am using version 3.0.0.
Many thanks

@rcasunshare
Copy link

One or more of the APIs you use or parameters you have defined for edge view and window view have been deprecated in Android 15. Your app uses the following deprecated APIs or parameters:

android.view.Window.setStatusBarColor

They start in the following places:

org.apache.cordova.statusbar.StatusBar.setStatusBarBackgroundColor

org.apache.cordova.statusbar.StatusBar.setStatusBarTransparent

To prepare for the move to Android 15, please stop using these APIs or parameters.

@BenLaKnet
Copy link

I have this message too in Google Play.
Should I stop to use this plugin or just setStatusBarXXX ?

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

No branches or pull requests

7 participants