Android 15 compatibility for Status-bar
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?
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.
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
same here
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.setStatusBarColor android.view.Window.setDecorFitsSystemWindows These start in the following places:
com.google.android.material.bottomsheet.a.onCreate androidx.core.splashscreen.e.a
To fix this, migrate away from these APIs or parameters.
I have the same issue. Any updates?
Please approve the above pull request, if it is correct.
I'm also getting the following warning:
Edge-to-edge may not display for all users
@merbin2012 does your PR solves this warning as well?
This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.
I have the same issue. Please remove
android.view.Window.setStatusBarColor
android.view.Window.setDecorFitsSystemWindows
from com.capacitorjs.plugins.splashscreen.SplashScreen.java
I believe this will solve the issue, I can't remove it because SplashScreen.java is an internal class
Also from Android version 16 on the Google documentation states for the attribute windowOptOutEdgeToEdgeEnforcement (that's refered to in the StatusBar plugin API documentation):
But if the window belongs to an app targeting BAKLAVA or above, this attribute is ignored and the enforcement is applied regardless.
I guess this should also be considered towards any solution.
See also this issue: https://github.com/ionic-team/capacitor-plugins/issues/2350
@alexgerardojacinto Is there anything missing for the merge to happen?
Any news?
Any update on this?
Any update on this would be appreciated
any news?
Bump? Is this on the roadmap? Thank you!