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

The consent form fail to load properly if a new scene is loaded #91

Open
00christian00 opened this issue Jan 2, 2025 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@00christian00
Copy link

00christian00 commented Jan 2, 2025

[REQUIRED]

  • Computer OS: [Windows,]
  • Unity Editor Version: [6000.0.31f]
  • Appodeal Unity Plugin Version: [e.g. 3.4.1]
  • Bug Repro Rate: [ 100%]

Step 2: Describe the bug

I load the plugin in a unity scene after the user accepted the terms and policy I initialize the plugin which show the consent form and after that I load the next scene.
In some scenarios the next scene is triggered before the consent form has finished showing, this make the consent form load a white page and impossible to close.
This mean right now without writing the whole consent form window loading manually with proper checks the plugin is not usable for multiple scenes because the risk of having an unusable app immediately at loading is too high.
This is what appear on the terminal:
`2024-12-31 18:09:40.066 23182-23182 chromium xxx.xxxxxx.xxxxx I [INFO:CONSOLE(1)] "Uncaught TypeError: Cannot read property 'setApp' of undefined", source: about:blank (1)

2024-12-31 18:09:40.066 23182-23182 chromium xxx.xxxxxx.xxxxx I [INFO:CONSOLE(1)] "Install bridge", source: (1)

2024-12-31 18:09:40.066 23182-23182 chromium xxx.xxxxxx.xxxxx I [INFO:CONSOLE(1)] "cmp or cmphandler not found", source: (1)

2024-12-31 18:09:40.066 23182-23182 chromium xxx.xxxxxx.xxxxx I [INFO:CONSOLE(1)] "Uncaught TypeError: window.cmphandler.show is not a function", source: about:blank (1)`

The SDK manager lives in a persistent gameobject with the dontdestroyonload property, but still I guess something gets destroyed among scenes making it fail.

Step 3: How to reproduce

Load the SDK in one scene without the given consent and immediately load a new scene.
I have the consent manager plugin installed and I initialize it but don't use it, don't know if it makes any difference.

Step 4: Expected behavior

The form should load normally among the scenes.

@Khrolovich
Copy link
Contributor

@00christian00 Hello,

Thank you for reaching out.
We’re unable to reproduce the issue on our end. To assist you more effectively, could you kindly provide a minimal reproducible project that demonstrates the issue?
Additionally, it would be helpful if you could clarify the following details:
1. Device model
2. OS version
3. Geographic location (GEO)

Your input will help us investigate further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants