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

Banner Ads loading on a background thread #691

Open
maximkir-fl opened this issue Jul 25, 2024 · 3 comments
Open

Banner Ads loading on a background thread #691

maximkir-fl opened this issue Jul 25, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@maximkir-fl
Copy link

MAX SDK Version

12.1.0

Device/Platform Info

Android

Current Behavior

I've noticed that sometimes my app freezes when the banner ad reloads. I see that the reloading takes place on the main thread. Can you reload the ad on a background thread instead?

Expected Behavior

Ad loading/reloading should occur in the background without interfering with the main thread work.

How to Reproduce

You can just run the demo app with slow internet connectivity.

Additional Info

No response

@maximkir-fl maximkir-fl added the bug Something isn't working label Jul 25, 2024
@richashukla23 richashukla23 self-assigned this Jul 25, 2024
@richashukla23
Copy link
Contributor

@maximkir-fl What networks you have integrated in the app where you notice this? Are you able to reproduce this with AppLovin network ads?

@gzjaychen
Copy link

Both banner and reward have freezing problems.
applovin-sdk:12.6.0
play-services-ads:23.2.0
unityads-adapter:4.12.1.0
vungle-adapter:7.4.0.0

@Lorenzo45
Copy link
Contributor

Hi @maximkir-fl @gzjaychen - thanks for the feedback. Any operations that can be performed on a background thread we make sure to do so. Loading banners typically involve UI operations which are required to be ran on the main thread.

For interstitials and rewarded ads, some networks require loading on the main thread.

If you can record a method trace using the Android Studio Profiler or a tool like Perfetto, that can help identify which operations are taking the longest on the main thread. If you share the trace with us, we can investigate further.

@Lorenzo45 Lorenzo45 assigned Lorenzo45 and unassigned richashukla23 Sep 6, 2024
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

4 participants