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

Consent Form: Multiple Shown at Same time #3709

Open
calumma-robert opened this issue Dec 12, 2024 · 0 comments
Open

Consent Form: Multiple Shown at Same time #3709

calumma-robert opened this issue Dec 12, 2024 · 0 comments

Comments

@calumma-robert
Copy link

calumma-robert commented Dec 12, 2024

[REQUIRED] Step 1: Describe your environment

  • Unity version: 2022.3.50f1
  • Google Mobile Ads Unity plugin version: 9.4.0
  • Plugin installation method: Unity package manager
  • Platform: All
  • Platform OS version: All
  • Any specific devices issue occurs on: All
  • Mediation ad networks used, and their versions: All (but they are not needed for the issue)

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

Multiple calls to LoadAndShowConsentFormIfRequired will result in multiple Consents Form shown, which should only show 1 and also results in an logged error for all but the first of:
The consent form dismiss callback is null.

In general only 1 form should be shown at the same time, this handling can also be kind of enforced by the end-user, but I think a general handling inside the SDK sounds more correct, as on our side we would need to hope, that the function will ALWAYS invoke the callback, which is not the case of an internal exception i.e., therefore it is not really bullet proof if done by us.

Also, in the Editor, showing multiple forms at the same time results in an unresolvable state, as you can't close all but 1.

Relevant Code:

// this is not the actual code from us, but it will prove the point :)
for (var i = 0; i < 3; i++)
  ConsentForm.LoadAndShowConsentFormIfRequired(_ => { });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant