[Google Play warning] Your app uses deprecated APIs or settings for edge-to-edge display
Summary
Google Play complains about using deprecated edge-to-edge settings for the app using Batch SDK as a dependency
Reproduction steps
No steps. Just upload app having Batch SDK as a dependency to the Google Play
Logs
Specifications
SDK Version
2.1.1
Installation method
Gradle dependency
Relevant development tools versions
Android targetSDK 35
Additional information
Full Google Play warning text:
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
These start in the following places:
com.batch.android.b0.f.onCreateDialog
com.batch.android.b0.g.onCreateDialog
com.batch.android.b0.h.onCreateDialog
To fix this, migrate away from these APIs or parameters.
I guess, it's because of using window.setStatusBarColor method in some fragments: https://github.com/search?q=repo%3ABatchLabs%2FBatch-Android-SDK+setStatusBarColor&type=code
Hi,
Thank you for reporting this. We are aware of the Google Play warning regarding deprecated edge-to-edge settings.
This is likely due to our current implementation maintaining compatibility with Android versions prior to API level 23, where WindowInsetsControllerCompat methods are not fully effectives. We are planning to remove these deprecated methods in a future SDK release.
In a meantime please contact our support team if you need more details.
Have a nice day