poingstudios / godot-admob-android

Godot's AdMob Plugin for Android with support for Mediations.
https://poingstudios.github.io/godot-admob-plugin/
MIT License
301 stars 32 forks source link

Admob android plugin shows black screen when enabled on Android API level 30 #224

Open toplay3 opened 2 weeks ago

toplay3 commented 2 weeks ago

Godot version

4.2.1

Plugin version

3.1.0

System information

Windows 10

Phone information, if applicable

on android emulator, Android 11, API level 30, x86

Issue description

When I enable admob plugin the screen never renders, it's black but doesn't crash, background music still plays, after a while it says the app is not responding.

This issue doesn't exist on Android 11 if the plugin is disabled This issue doesn't exist on Android 12,13,14 API > 30

When I uploaded the game to the play store the automatic test also picked this up

Steps to reproduce

  1. Follow the steps to install the plugin in godot
  2. export the game in android to emulator Android 11, API level 30
  3. splash screen loads
  4. autoloaded background scripts seem to still run
  5. the screen is black and non-responsive to anything

Additional context

I suspect it's an issue with the plugin and haven't investigated further as to what exactly is causing this, can't tell from the logs. Please let me know if I'm doing something wrong.

ADB logcat details:

04-30 02:01:12.404 5799 5858 I DynamiteModule: Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:240304704 04-30 02:01:12.405 5799 5858 I DynamiteModule: Selected remote version of com.google.android.gms.ads.dynamite, version >= 240304704 04-30 02:01:12.408 5799 5858 D DynamitePackage: Instantiated singleton DynamitePackage. 04-30 02:01:12.408 5799 5858 D DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraMobileAdsSettingManagerCreatorImpl 04-30 02:01:12.432 544 993 D ConnectivityService: requestNetwork for uid/pid:10154/5799 NetworkRequest [ TRACK_DEFAULT id=85, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10154 AdministratorUids: [] RequestorUid: 10154 RequestorPackageName: com.tutujoygames.cubequest] ] 04-30 02:01:12.434 544 668 D ConnectivityService: NetReassign [85 : null → 100] 04-30 02:01:12.435 928 928 D PhoneSwitcherNetworkRequstListener: got request NetworkRequest [ TRACK_DEFAULT id=85, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10154 AdministratorUids: [] RequestorUid: 10154 RequestorPackageName: com.tutujoygames.cubequest] ] with score 60 and providerId 3 04-30 02:01:12.441 544 662 D UntrustedWifiNetworkFactory: got request NetworkRequest [ TRACK_DEFAULT id=85, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10154 AdministratorUids: [] RequestorUid: 10154 RequestorPackageName: com.tutujoygames.cubequest] ] with score 60 and providerId 3 04-30 02:01:12.442 544 662 D WifiNetworkFactory: got request NetworkRequest [ TRACK_DEFAULT id=85, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10154 AdministratorUids: [] RequestorUid: 10154 RequestorPackageName: com.tutujoygames.cubequest] ] with score 60 and providerId 3 04-30 02:01:12.450 5799 5858 I WebViewFactory: Loading com.google.android.webview version 83.0.4103.106 (code 410410681)

gumaciel commented 2 weeks ago

Hi @toplay3 can you provide us more information about using adb but filtering by poing-godot-admob?