Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UMP ConsentForm.ShowPrivacyOptionsForm getting an error everytime for US messages #3695

Open
absrndm opened this issue Nov 20, 2024 · 2 comments
Assignees
Labels
Plugin Issue with the Unity plugin. SDK Sdk engineering issue.

Comments

@absrndm
Copy link

absrndm commented Nov 20, 2024

[REQUIRED] Step 1: Describe your environment

  • Unity version: 2022.3.46f1
  • Google Mobile Ads Unity plugin version: 9.4.0
  • Plugin installation method: .unitypackage import
  • Platform: Android
  • Platform OS version: Tested on Android 9 and Android 14
  • Any specific devices issue occurs on: No, multiple devices
  • Mediation ad networks used, and their versions: none

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

Every time I save the data preferences in a message for regulated states in the US, I get a warning in the console that says, "we are getting something wrong with the webview." Then, the same message is sent as a FormError in ConsentForm.ShowPrivacyOptionsForm().

This happens whether the device naturally connects from a regulated state or if I use DebugGeography.RegulatedUSState.

However, the selected option seems to persist when reopening the form, even in another session but I don't know if its being effective for Ad requests.

Relevant Code:

ConsentForm.ShowPrivacyOptionsForm((FormError showError) =>
{
    if (showError != null)
    {
        if (onComplete != null)
        {
            onComplete(showError.Message);
        }
    }
    else if (onComplete != null)
    {
        onComplete(null);
    }
});
@NVentimiglia NVentimiglia self-assigned this Nov 21, 2024
@NVentimiglia NVentimiglia added SDK Sdk engineering issue. Plugin Issue with the Unity plugin. labels Nov 21, 2024
@NVentimiglia
Copy link
Member

@absrndm

I was unable to replicate this. Can you share anymore details ?

@LoveraSantiago
Copy link

Hi I am facing same issue.

I'm trying to simulate consents for DebugGeography.RegulatedUSState.

In my tests I always use ConsentInformation.Reset();
The consent form simulating USS doesn't appear at the beginning. On the contrary, when I do tests simulating GDPR (DebugGeography.EEA) the form appears initially.

I have a button for the user to manage their data consent, as instructed in the documentation. In my tests, when pressed, the form appears for both DebugGeography.RegulatedUSState and DebugGeography.EEA.

However, when I'm using DebugGeography.RegulatedUSState, when I finish using the form. The same error mentioned in the first post occurs and my app is killed.

`2024/12/02 16:11:59.494 29157 30202 Error Unity <>c__DisplayClass5_0:b__0(String)
2024/12/02 16:11:59.494 29157 30202 Error Unity GoogleMobileAds.Ump.Android.ConsentFormClient:onConsentFormDismissed(AndroidJavaObject)
2024/12/02 16:11:59.494 29157 30202 Error Unity System.Reflection.RuntimeMethodInfo:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
2024/12/02 16:11:59.494 29157 30202 Error Unity UnityEngine.AndroidJavaProxy:Invoke(String, Object[])
2024/12/02 16:11:59.494 29157 30202 Error Unity UnityEngine.AndroidJavaProxy:Invoke(String, IntPtr)
2024/12/02 16:11:59.494 29157 30202 Error Unity UnityEngine._AndroidJNIHelper:InvokeJavaProxyMethod(AndroidJavaProxy, IntPtr, IntPtr)

2024/12/02 16:11:59.496 29157 30202 Error Unity We are getting something wrong with the webview.
2024/12/02 16:11:59.496 29157 30202 Error Unity <>c__DisplayClass5_0:b__0(String)
2024/12/02 16:11:59.496 29157 30202 Error Unity GoogleMobileAds.Ump.Android.ConsentFormClient:onConsentFormDismissed(AndroidJavaObject)
2024/12/02 16:11:59.496 29157 30202 Error Unity System.Reflection.RuntimeMethodInfo:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
2024/12/02 16:11:59.496 29157 30202 Error Unity UnityEngine.AndroidJavaProxy:Invoke(String, Object[])
2024/12/02 16:11:59.496 29157 30202 Error Unity UnityEngine.AndroidJavaProxy:Invoke(String, IntPtr)
2024/12/02 16:11:59.496 29157 30202 Error Unity UnityEngine._AndroidJNIHelper:InvokeJavaProxyMethod(AndroidJavaProxy, IntPtr, IntPtr)

2024/12/02 16:11:59.506 29157 30201 Debug UserMessagingPlatform Writing to storage: [IABGPP_HDR_GppString] DBABL~BVQqAAAAAg
2024/12/02 16:11:59.506 29157 30201 Debug UserMessagingPlatform Writing to storage: [GppMetadata] [[[7,[1733166467,858624000]]]]
2024/12/02 16:11:59.506 29157 30201 Debug UserMessagingPlatform Writing to storage: [IABGPP_GppSID] 7

2024/12/02 16:11:59.518 29157 30202 Error Unity Graphics device is null.
2024/12/02 16:11:59.518 29157 30202 Error Unity TMPro.TextMeshProUGUI:Awake()
2024/12/02 16:11:59.518 29157 30202 Error Unity <>c__DisplayClass3_0:<.ctor>b__1(String)
2024/12/02 16:11:59.518 29157 30202 Error Unity GoogleMobileAds.Ump.Android.ConsentFormClient:onConsentFormDismissed(AndroidJavaObject)
2024/12/02 16:11:59.518 29157 30202 Error Unity System.Reflection.RuntimeMethodInfo:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
2024/12/02 16:11:59.518 29157 30202 Error Unity UnityEngine.AndroidJavaProxy:Invoke(String, Object[])
2024/12/02 16:11:59.518 29157 30202 Error Unity UnityEngine.AndroidJavaProxy:Invoke(String, IntPtr)
2024/12/02 16:11:59.518 29157 30202 Error Unity UnityEngine._AndroidJNIHelper:InvokeJavaProxyMethod(AndroidJavaProxy, IntPtr, IntPtr)
2024/12/02 16:11:59.518 29157 30202 Error Unity [ line 515325080]

2024/12/02 16:11:59.522 29157 29157 Debug DecorView[] onWindowFocusChanged hasWindowFocus true
2024/12/02 16:11:59.544 29157 29157 Info HandWritingStubImpl refreshLastKeyboardType: 1
2024/12/02 16:11:59.544 29157 29157 Info HandWritingStubImpl getCurrentKeyboardType: 1
0001/01/01 00:00:00.000 -1 -1 Info --------- beginning of crash
2024/12/02 16:12:00.502 29157 30202 Fatal libc Fatal signal 5 (SIGTRAP), code -6 (SI_TKILL) in tid 30202 (Thread-22), pid 29157 (m.origami.party)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Plugin Issue with the Unity plugin. SDK Sdk engineering issue.
Projects
None yet
Development

No branches or pull requests

3 participants