AppLovin / AppLovin-MAX-SDK-Android

Other
233 stars 104 forks source link

Add support for loading ads without an Activity context for All Adapters #729

Closed ibrahimeywin closed 1 month ago

ibrahimeywin commented 1 month ago

Feature Description

Hello,

Recently, the ability to load ads without an activity context was integrated for the AdMob and GAM adapters.

Could you please clarify if there are plans to extend this functionality to other adapters, and if so, is there an estimated release date? Our ANR rate has increased significantly in the latest release, and we suspect it may be related to this issue.

We need to realase urgent new version to decrase ANR's. Thank you in advance for any information you can provide.

thomasmso commented 1 month ago

@ibrahimeywin - it really depends on the mediated SDK's requirements. Is there a specific adapter that you are inquiring for?

ibrahimeywin commented 1 month ago

Thank you so much for your quick response!

These are the most critical adapters for us.

Admob Gam Meta Liftoff DTExchange(Fyber-Inneractive) Amazon Pangle Verve/Pubnative Bidmachine Inmobi Mintegral Applovin

thomasmso commented 1 month ago

Generally speaking, using an Activity instance shouldn't cause ANRs, but we're in the process of combing through the adapters to see where else we can stop passing in Activity references to mediated SDKs (which might hold a reference to it longer than necessary).

ibrahimeywin commented 1 month ago

With version 12.5.0, we send applicationcontext since it is not mandatory to use activity in load requests.

ss

However, I think this causes problems in some adapters. I see that there was a fix for GAM and Google a while ago, will there be an improvement for other adapters in the near future?

ss2
ibrahimeywin commented 1 month ago

Hi @Kennyhbui ,

Will there be a development for other adapters in the near future? It is very important that other adapters can load without activity context.

ss
Kennyhbui commented 1 month ago

Hi @ibrahimeywin,

I'm currently finalizing fixes to ensure there are no issues in the adapters when loading ads with an activity context. These changes will be available soon.

ibrahimeywin commented 1 month ago

Hi @Kennyhbui

Thank you very much for the information. Then we will postpone our update until you complete the fixes. Originally, our plan was to release the update today.

ibrahimeywin commented 1 month ago

Hi @Kennyhbui , is there any date for the update?

Kennyhbui commented 1 month ago

Hi @ibrahimeywin, the updates should be ready early next week. I'll let you know once they're available.

Kennyhbui commented 1 month ago

Hi @ibrahimeywin, the adapter updates are live.

ibrahimeywin commented 1 month ago

Thank you very much! Are the same changes planned for the following adapters? Verve Bidmachine Mintegral

Kennyhbui commented 1 month ago

@ibrahimeywin - These adapters should already have the ability to load ads without an Activity context. Are you experiencing issues with these adapters?

ibrahimeywin commented 1 month ago

@Kennyhbui Now I have checked these adapters again.

Kennyhbui commented 1 month ago

@ibrahimeywin - Thank you for pointing that out. I'll update the Mintegral adapter shortly.

ibrahimeywin commented 1 month ago

@Kennyhbui Thank you for your collaboration and support.