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 15 compatibility for Status-bar #2297

Open
sergtop opened this issue Jan 18, 2025 · 2 comments
Open

Android 15 compatibility for Status-bar #2297

sergtop opened this issue Jan 18, 2025 · 2 comments
Labels

Comments

@sergtop
Copy link

sergtop commented Jan 18, 2025

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?

@ionitron-bot ionitron-bot bot added the triage label Jan 18, 2025
@omprakashdashore1
Copy link

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?

Getting same warning on playstore console. In capacitor doc https://developer.android.com/reference/android/R.attr#windowOptOutEdgeToEdgeEnforcement is mention, where to use it and how to remove this warning, waiting for reply.

@evrrnv
Copy link

evrrnv commented Jan 24, 2025

Same here, I'm getting this warning:

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.setDecorFitsSystemWindows
androidx.core.view.WindowCompat$Api35Impl.setDecorFitsSystemWindows
androidx.core.view.WindowCompat.setDecorFitsSystemWindows
android.view.Window.getStatusBarColor
android.view.Window.setStatusBarColor

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

No branches or pull requests

3 participants