Share via

I get the message Edge-to-edge may not display for all users when I upload my game to Google Play Console

Kim Strasser 2,596 Reputation points
2026-05-18T21:09:30.4333333+00:00

I have uploaded my game to Google Play Console Production and I get the message "3 actions recommended" in the Release dashboard:

Edge-to-edge may not display for all users From Android 15, apps targeting SDK 35 will display edge-to-edge by default. Apps targeting SDK 35 should handle insets to make sure that their app displays correctly on Android 15 and later. Investigate this issue and allow time to test edge-to-edge and make the required updates. Alternatively, call enableEdgeToEdge() for Kotlin or EdgeToEdge.enable() for Java for backward compatibility.

How can I find out if my game displays correctly on Android 15 and later? I have tested my game on my Tab S7 FE with Android version 14 and on my Pixel 8a with Android version 16 and my game is displayed correctly on both devices. Can I ignore the message "Edge-to-edge may not display for all users"?

Your app uses deprecated APIs or parameters for edge-to-edge One or more of the APIs that 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.setNavigationBarColor These start in the following places: com.google.android.material.bottomsheet.BottomSheetDialog.onCreate com.google.android.material.internal.EdgeToEdgeUtils.applyEdgeToEdge To fix this, migrate away from these APIs or parameters.

I have tried to enter the following words in the Visual Studio search but Visual Studio doesn´t find the words in my project:

android.view.Window.setStatusBarColor android.view.Window.setNavigationBarColor com.google.android.material.bottomsheet.BottomSheetDialog.onCreate com.google.android.material.internal.EdgeToEdgeUtils.applyEdgeToEdge

Screenshot 2026-05-18 224926

Remove resizability and orientation restrictions in your game to support large screen devices Your game doesn't support all display configurations, and uses resizability and orientation restrictions that may lead to layout issues for your users. We detected the following resizability and orientation restrictions in your game: <activity android:name="xxx.Activity1" android:screenOrientation="USER_LANDSCAPE" /> To improve the user experience of your game, remove these restrictions and check that your game layouts work on various screen sizes and orientations.

My game only supports landscape mode. Is it necessary to change something because I get this message or can I ignore the message?

My settings for my Android project in Visual Studio:

Screenshot 2026-05-18 224618

Developer technologies | .NET | .NET Multi-platform App UI
0 comments No comments

Answer accepted by question author

Nancy Vo (WICLOUD CORPORATION) 4,765 Reputation points Microsoft External Staff Moderator
2026-05-19T04:06:13.7333333+00:00

Hello @Kim Strasser ,

Thanks for your question.

  1. Since you target SDK 36.1, I recommend adding this one line before base.OnCreate:

Platforms/Android/MainActivity.cs:

protected override void OnCreate(Bundle? savedInstanceState)
{
    WindowCompat.SetDecorFitsSystemWindows(Window!, false);
    base.OnCreate(savedInstanceState);
}
  1. These are inside the Google Material Android library (a NuGet dependency MAUI uses internally). That's why Visual Studio text search finds nothing, you didn't write this code, the library did.

I recommend updating your Nuget packages.

  • In Visual Studio -> Tools -> NuGet Package Manager -> Manage Nuget Packages for Solution
  • Go to Updates tab
  • Update these packages to the latest versions:

Xamarin.Google.Android.Material (or Google.Android.Material) Xamarin.AndroidX.Core Xamarin.AndroidX.AppCompat

Also add this to your styles.xml:

<resources>
    <style name="Maui.MainTheme" parent="Theme.Material3.DayNight.NoActionBar">
        <item name="android:statusBarColor">@android:color/transparent</item>
        <item name="android:navigationBarColor">@android:color/transparent</item>
        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
    </style>
</resources>
  1. Google's warning is a recommendation, not a hard requirement for games. Many games are landscape-only and this is accepted. However, Google wants you to declare that this is intentional.

When filling out your Store Listing or App Content section in Play Console, you can note that your game is designed for landscape mode. Google allows this with a valid reason.

I suggest adding android:resizeableActivity="false" explicitly:

Platforms/Android/AndroidManifest.xml

<activity
    android:name="com.yourpackage.MainActivity"
    android:screenOrientation="userLandscape"
    android:resizeableActivity="false"
    android:configChanges="orientation|screenSize|keyboard|keyboardHidden" />

I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.