UMP - message for US users - error when closing window

256 views
Skip to first unread message

Christopher

unread,
Jan 11, 2025, 8:03:37 AM1/11/25
to Google Mobile Ads SDK Developers
I use the 'com.google.android.ump:user-messaging-platform' library in my Android apps. I added and published a message for US users for one of my apps (using AdMob tools). 

Everything works fine except when I close the window with the "Save and close" button. Every time in "logcat" and in the "onConsentFormDismissed" event there appears this error: "We are getting some wrong with the webview".

Here is my code:
UserMessagingPlatform.showPrivacyOptionsForm(this, new ConsentForm.OnConsentFormDismissedListener() {
    @Override
    public void onConsentFormDismissed(@Nullable FormError formError) {
       // formError.getErrorCode() = 1
       // formError.getMessage() = 'We are getting some wrong with the webview'
    }
});

There is no exception and everything seems to be working fine, but this error shows up.
The error appears for all UMP versions (I tested from version 2.1 to version 3.1). The error appears on all devices regardless of Android version.

Thank you.

Mobile Ads SDK Forum Advisor

unread,
Jan 12, 2025, 5:29:39 PM1/12/25
to kreosof...@gmail.com, google-adm...@googlegroups.com
Hi Christopher,

Thank you for contacting Mobile Ads Support Team.

Kindly provide your app Id and adUnit Id by utilizing reply to author option where US message config setup for further investigation.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGvK0:ref" (ADR-00284044)

Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5



Christopher

unread,
Jan 13, 2025, 8:59:31 AM1/13/25
to Google Mobile Ads SDK Developers
You can reproduce the issue by running your sample app, for example from here:
https://github.com/googleads/googleads-mobile-android-examples/tree/main/java/admob/BannerExample

So the problem is not limited to my apps.

Thank you.

Mobile Ads SDK Forum Advisor

unread,
Jan 13, 2025, 3:15:59 PM1/13/25
to kreosof...@gmail.com, google-adm...@googlegroups.com
Hi,

We are unable to reproduce the mentioned issue in our environment, Kindly help us with screen recording for further assistance.
Message has been deleted

Christopher

unread,
Jan 15, 2025, 5:07:08 PM1/15/25
to Google Mobile Ads SDK Developers
It's weird that you can't reproduce the issue in your environment. All my test devices have this issue (e.g. Google Pixel 6a,  Samsung Galaxy devices). I would like to add that all my system apps are up to date (Google Play Services, Android System WebView).

I'm sending you some screenshots from your sample app from here:
https://github.com/googleads/googleads-mobile-android-examples/tree/main/java/admob/BannerExample

The fourth screenshot shows the "Toast" that appears in this part of the app code:

googleMobileAdsConsentManager.showPrivacyOptionsForm(
  this,
  formError -> {
    if (formError != null) {
    Toast.makeText(this, formError.getMessage(), Toast.LENGTH_SHORT).show();
  }
});

Since I'm in the EU, I'm setting this flag to test messages for US users:
ConsentDebugSettings.DebugGeography.DEBUG_GEOGRAPHY_REGULATED_US_STATE

As you can see in the "onConsentFormDismissed" event (right after closing the window) an error message is displayed: "We are getting some wrong with the webview  ".

Thank you.
4.jpg
1.jpg
2.jpg
3.jpg

Mobile Ads SDK Forum Advisor

unread,
Jan 16, 2025, 8:49:53 AM1/16/25
to kreosof...@gmail.com, google-adm...@googlegroups.com

Hi Christopher,

I ran an AdMob banner sample application and I can see the error message in the logcat “We are getting something wrong with the webview.”

I will check with our team about this issue and one of my team members will reach out to you once we have an update. Meanwhile, I would appreciate your patience. 

Mobile Ads SDK Forum Advisor

unread,
Feb 24, 2025, 1:14:57 PM2/24/25
to kreosof...@gmail.com, google-adm...@googlegroups.com
Hello,

A change is going out tomorrow that will address this issue. However, the fix requires changing what the consent status returns after the form is filled out. For more information, see https://groups.google.com/g/google-admob-ads-sdk/c/JVVp2_LRtK0.

Thanks,
 
Google Logo
Eric Leichtenschlag
Mobile Ads SDK Team


Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-02-24 18:14:09Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vGvK0:ref" (ADR-00284044)



Reply all
Reply to author
Forward
0 new messages