dotnet / dotnet/android

Your app uses deprecated APIs or parameters for edge-to-edge.

Open
#10,304 4 comments 0 reactions 0 assignees View on GitHub
Area: App Runtime
Dominant language
C#
Stars
2.1k
Forks
579
Avg merge
1d 19h
Merged PRs (30d)
252

Description

### Android framework version

net9.0-android

### Affected platform version

VS2022 17.14.7 Prev 1.0

### Description

Every time I upload a new version of my app to Google Play Console, it states Your app uses deprecated APIs or parameters for edge-to-edge. The app has been accepted and published; therefore, for the moment, it is okay. However, I believe that all Android 15 apps must be edge-to-edge compliant by September 1st.

It states that I’m using SetStatusBarColor and SetNavigationBarColor. Both those methods were removed from my app when I first went edge-to-edge months ago. Neither method appears in my app when I search for either of them using VS’s Find in File (Solution).

EdgeToEdge.Enable(this) is the very first line of the OnCreate of my BaseActivity.cs

Google Play Console states that it starts in the following
• com.google.android.material.internal.EdgeToEdgeUtils.applyEdgeToEdge
• com.google.android.material.bottomsheet.BottomSheetDialog.onCreate

https://play.google.com/console/u/0/developers/4890293474557724868/app/4972948681272339281/tracks/production#:~:text=com.google.android,internal.EdgeToEdgeUtils.applyEdgeToEdge
https://play.google.com/console/u/0/developers/4890293474557724868/app/4972948681272339281/tracks/production#:~:text=com.google.android.material.bottomsheet.BottomSheetDialog.onCreate
If you check those two files, you will find references to both methods, and I suppose that is how they end up in my app.

The EdgeToEdge file name refers to internal, which I assume is not something we can change. I also thought that upgrading all the NuGet packages of my project would eventually fix the problem. However, the latest build is using the packages dated July 15th.

The app now looks to be edge-to-edge compliant. For example, RecyclerViews are visible through the bottom Navigation Bar. When you rotate the device, the padding of the views on the left and right is correct. BottomSheet dialogs display scrolling content through the bottom Navigation Bar. Both light and dark themes respect edge-to-edge.

I’ve asked Google Play Console support how they determine that an app is not compliant, but they were not at all helpful.

Would you guys have any knowledge of what can be done to make the app compliant?

### Steps to Reproduce

N/A

### Did you find any workaround?

No

### Relevant log output

```shell
N/A
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.