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

Deprecated API/Parameter warnings in Google Play Developer console for edge-to-edge #3720

Open
Raydekk opened this issue Jan 28, 2025 · 3 comments
Assignees
Labels
Support General question, Installation question, or feedback.

Comments

@Raydekk
Copy link

Raydekk commented Jan 28, 2025

[REQUIRED] Step 1: Describe your environment

  • Unity version: 2022.3.56
  • Google Mobile Ads Unity plugin version: 9.5.0
  • Plugin installation method: .unitypackage import
  • Platform: Android
  • Platform OS version: Android 35
  • Any specific devices issue occurs on: no
  • Mediation ad networks used, and their versions: Mintegral, liftoff, applovin, but not relevant to the issue

[REQUIRED] Step 2: Describe the problem

This is a minor issue, I am getting these warnings in the Android vitals in Google Play Developer console:

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:

androidx.core.view.WindowCompat.setDecorFitsSystemWindows
LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
These start in the following places:

com.google.android.gms.internal.consent_sdk.zzay.show <---this one is from the Google UMP SDK 3.1.0 included in 9.5.0
com.mbridge.msdk.activity.MBBaseActivity.onCreate <--- these ones are from Mintegral
com.mbridge.msdk.newreward.player.BaseActivity.setActivityFull
com.mbridge.msdk.widget.dialog.MBAlertDialog.hideNavigationBar
com.mbridge.msdk.widget.dialog.MBFeedBackDialog.hideNavigationBar

Both of these use deprecated API/parameters. Is there a way to include the new ones? I see there is no new version after 3.1.0 for the UMP SDK.

@NVentimiglia
Copy link
Member

@Raydekk

What minSDK and targetSDK version are you building against? The "setDecorFitsSystemWindows" method was introduced in Android 10 (API level 29). You may need to update your API level to remove this warning.

@NVentimiglia NVentimiglia self-assigned this Feb 6, 2025
@NVentimiglia NVentimiglia added the Support General question, Installation question, or feedback. label Feb 6, 2025
@Raydekk
Copy link
Author

Raydekk commented Feb 6, 2025

minSDK = API level 26
targetSDK = API level 35

@mhctseu
Copy link

mhctseu commented Feb 7, 2025

Same issue here.

Admob 9.1.1
minimum API Level = 26
target API Level = 34

Play Console 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.getNavigationBarColor
LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES

These start in the following places:
com.bytedance.sdk.openadsdk.utils.Gx.JhQ
com.mbridge.msdk.activity.MBBaseActivity.onCreate
com.mbridge.msdk.widget.dialog.MBAlertDialog.hideNavigationBar
com.mbridge.msdk.widget.dialog.MBFeedBackDialog.hideNavigationBar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support General question, Installation question, or feedback.
Projects
None yet
Development

No branches or pull requests

3 participants