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

upgrading to higher versions (4.0.0 and later) resulted in a large number of WebViews being created for ad display. #293

Open
Yibei-ayuo opened this issue Jan 2, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Yibei-ayuo
Copy link

MAX Plugin Version

4.0.0

Flutter Version

3.19.3

Device/Platform Info

All Android

Current Behavior

在使用mrec和banner时,如果配置的广告是admob,会无限创建webview,导致app性能消耗极大,大量出现anr。
我们测试一下Max SDK版本以及admob SDK的版本,max版本为3.11.1(android版max sdk 12.6.1)及之前的版本没有问题(创建的webview个数维持着12个左右),但升级到高版本(4.0.0及之后的版本)就会大量创建webview用于广告展示。

When using MREC and banner ads with AdMob configured, an unlimited number of WebViews are created, significantly impacting app performance and leading to a large number of ANRs.

We tested the versions of the Max SDK and AdMob SDK. For the Max SDK version 3.11.1 (Android Max SDK 12.6.1) and earlier, there were no issues (the number of WebViews remained around 12). However, upgrading to higher versions (4.0.0 and later) resulted in a large number of WebViews being created for ad display.

Expected Behavior

No response

How to Reproduce

max debugger中设置测试广告为admob并且使用chrome://inspect/#devices检查app创建的webview个数

Set test ads to AdMob in the MAX Debugger and use chrome://inspect/#devices to check the number of WebViews created by the app.

Reproducible in the demo app?

Yes

Additional Info

No response

@Yibei-ayuo Yibei-ayuo added the bug Something isn't working label Jan 2, 2025
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

1 participant