googleads / googleads-mobile-android-examples

googleads-mobile-android
Apache License 2.0
1.7k stars 1.87k forks source link

App Open Ad stuck, no way to continue #632

Closed michaeldiener closed 9 months ago

michaeldiener commented 9 months ago

In the top right of the screenshot you can see the loading indication that does not end sometimes. So then the user is unable to continue to the app.

This happens for com.google.android.gms:play-services-ads:22.6.0 and com.google.android.gms:play-services-ads:22.5.0

Haven't observed it for older versions. Not easy to reproduce, it seems to happen only sometimes. No error in the log.

Screenshot_20231208_115326

michaeldiener commented 9 months ago

Also happens for version 22.4.0. Also I have tried disabling test ads and using productions ads and it also happens there.

The way to reproduce it, is to have additional activities.

  1. Cold start main activity (app open ad load is initiated)
  2. Go to 2nd activity from main activity, then to 3rd
  3. go back and close app
  4. open app to show app open ad
  5. ad shows, but never finishes loading/waiting
michaeldiener commented 9 months ago

Problem was caused by some strange old code handling WebViews in onPause.