Skip to content

Android 15 compatibility for Status-bar #2297

@sergtop

Description

@sergtop

I recently got the message in Google Play (along with edge-to-edge recommendation)

Your app uses deprecated APIs or parameters for edge-to-edge
One or more of the APIs you use or parameters that you set for edge-to-edge and window display have been deprecated in Android 15. Your app uses the following deprecated APIs or parameters:

android.view.Window.getStatusBarColor
android.view.Window.setStatusBarColor
These start in the following places:

com.capacitorjs.plugins.statusbar.StatusBar.<init>
com.capacitorjs.plugins.statusbar.StatusBar.setBackgroundColor
com.capacitorjs.plugins.statusbar.StatusBar.setOverlaysWebView
To prepare for the change to Android 15, migrate away from these APIs or parameters.

Do you have any suggestions for fixing this without removing the plugin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugA confirmed bug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions