Skip to content

Example project to showcase a bug where Google Mobile Ads for iOS shows a blank ad due to a nil WKWebView URL

Notifications You must be signed in to change notification settings

lotz/googleads-mobile-ios-example-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summary

AdMob banner ads are rendering blank when iOS "suspends" an app that has been in the background for some time. The blank ads appear to be caused when the banner view's underlying WKWebView's url property becomes nil.

To reproduce this, run this sample app on a real device (iPhone) running iOS 17.4 (I am unsure if this issue is present on other iOS versions). Open the app, return to the Home Screen, and then let the app sit in the background from anywhere from 30 minutes to several hours (there is no way to trigger a "suspended" state). When returning to the app, sometimes the ad banner view will be blank, and the message shown should indicate the the URL is nil.

For more detail, see the links below.

Links


When the ad renders blank with a nil URL, the status will update to indicate this.


About

Example project to showcase a bug where Google Mobile Ads for iOS shows a blank ad due to a nil WKWebView URL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages