UMP consent dialog does not show anymore on iOS since iOS 16

721 views
Skip to first unread message

Marco DUARTE

unread,
Nov 2, 2023, 10:33:27 PM11/2/23
to Google Mobile Ads SDK Developers
Hello,

I'm using for years now, on both my Android and iOS applications, the Google Mobile Ads SDK to show ads and manage the user consent. Recently, I'm having issues loading ads in general on both applications and after some debugging I found out that on iOS the UMP consent dialog stopped showing if the iOS version is 16 or 17. Testing on the iOS 15 everything seems to work just fine. It happens that if the consent is not answered then the ads will not load. So the iOS application is currently not loading ads and its revenue is very low.
Shouldn't the app still load non personalized ads even without consent?
Using the debugger and a real device the value for UMPConsentInformation.sharedInstance.formStatus is .unavailable. If I use a simulator and test ads everything works.
Could you help me understand what might be the issue I'm having? I'm open to give more info if necessary.

App ID: ca-app-pub-5633425400977900~6497929045

Best regards,
Marco Duarte

Mobile Ads SDK Forum Advisor

unread,
Nov 3, 2023, 6:50:06 AM11/3/23
to ma...@appsconcept.eu, google-adm...@googlegroups.com

Hi Marco,

Thank you for contacting the Mobile Ads SDK support team.

I will check with our team regarding your issue and one of my team members will reach out to you once we have an update on this. Meanwhile, your patience is highly appreciated. 

This message is in relation to case "ref:!00D1U01174p.!5004Q02qAAsd:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Mobile Ads SDK Forum Advisor

unread,
Nov 3, 2023, 10:54:22 AM11/3/23
to ma...@appsconcept.eu, google-adm...@googlegroups.com
Hello,

Thanks for that information. Follow the iOS instructions to enable your physical device as a test device . On iOS, simulators are test devices by default. Also be sure to set to the geography to .EEA if you are not in a GDPR privacy-regulated region already. Take a look at our complete guide for more information.  

As far as your question, "Shouldn't the app still load non personalized ads even without consent?" Consent is required to serve personalized ads because the user has to consent to cookies (Purpose 1). If there is no consent, limited ads will attempt to be served.

Thanks,
Justin

ref:!00D1U01174p.!5004Q02qAAsd:ref

Ginaada

unread,
Nov 7, 2023, 6:47:38 AM11/7/23
to Google Mobile Ads SDK Developers
Hello,

I'm also experiencing an issue calling the UMPConsentForm.load in iOS 17. After connecting the app, creating a consent in the AdMob privacy & messaging I'm getting this error:

Error Domain=WebKitErrorDomain Code=101 "The URL can’t be shown" UserInfo={_WKRecoveryAttempterErrorKey=<WKReloadFrameErrorRecoveryAttempter: 0x2813f58a0>, NSErrorFailingURLStringKey=about:blank/, NSErrorFailingURLKey=about:blank/, NSLocalizedDescription=The URL can’t be shown}

Checking the UMPFormStatus returns available.

Best,
Gina

Mobile Ads SDK Forum Advisor

unread,
Nov 7, 2023, 10:11:02 AM11/7/23
to in...@figuratic.com, google-adm...@googlegroups.com

Hello,

Thank you for flagging that issue to us. I cannot replicate that issue using our iOS sample apps , can you please share a minimum reproducible sample and/or any specific steps you took to replicate this error?

Mobile Ads SDK Forum Advisor

unread,
Nov 7, 2023, 6:22:11 PM11/7/23
to in...@figuratic.com, google-adm...@googlegroups.com
Hello,

Thank you for specifying the OS. It appears to be an issue with iOS 17.2 (which is still in beta). I am able to reproduce your issue - I have escalated this issue to the greater iOS engineering team for further debugging. I will respond here as soon as I have an update.

Ginaada

unread,
Nov 7, 2023, 10:01:05 PM11/7/23
to Google Mobile Ads SDK Developers
Hello,

Thank you for providing the link to the sample app. After installing the app and pods. I'm having the same issue with the sample app. The consent is not showing up. Instead I'm getting:

Error Domain: WebKitErrorDomain Code=101 "The URL can’t be shown" UserInfo={_WKRecoveryAttempterErrorKey=<WKReloadFrameErrorRecoveryAttempter: 0x280328d40>, NSErrorFailingURLStringKey=about:blank/, NSErrorFailingURLKey=about:blank/, NSLocalizedDescription=The URL can’t be shown
at this line in the GoogleMobileAdsConsentManager:

UMPConsentForm.loadAndPresentIfRequired(from: consentFormPresentationviewController) {

        loadAndPresentError in

        // Consent has been gathered.

        consentGatheringComplete(loadAndPresentError)

      }

The consent is not showing, I've tried this on an Iphone 13 mini. iOS version 17.2

Best Regards,
Gina

Figuratic.com Styling tool

unread,
Nov 7, 2023, 10:01:13 PM11/7/23
to Mobile Ads SDK Forum Advisor, google-adm...@googlegroups.com
Hello,

Thank you for providing the link to the sample App. After installing and running the app, I get the same issue as I did before, where the consent is not showing up and I'm getting an error.

Debugging the code in the GoogleMobileAdsConsentManager at:

UMPConsentForm.loadAndPresentIfRequired(from: consentFormPresentationviewController) {

        loadAndPresentError in


        // Consent has been gathered.

        consentGatheringComplete(loadAndPresentError)

      }

The loadAndPresentError returns:

Error Domain=WebKitErrorDomain Code=101 "The URL can’t be shown" UserInfo={_WKRecoveryAttempterErrorKey=<WKReloadFrameErrorRecoveryAttempter: 0x280328d40>, NSErrorFailingURLStringKey=about:blank/, NSErrorFailingURLKey=about:blank/, NSLocalizedDescription=The URL can’t be shown


Am I missing something?

I'm running on an iPhone 13 mini. iOS v. 17.2


Best regards,


Gina


Figuratic.com Styling tool

unread,
Nov 7, 2023, 10:01:19 PM11/7/23
to Mobile Ads SDK Forum Advisor, google-adm...@googlegroups.com
Hello again,

I just tried running the app on an iPhone 11 iOS 16.6 and the consent works fine in the sample app and my own app. The issue seems to be either with iOS 17.2 or iPhone 13 mini. Please have a look.

Best regards,

Gina
Reply all
Reply to author
Forward
0 new messages