Closed StanislawNagorski closed 1 year ago
Hi @StanislawNagorski It looks like you have set an incorrect AppLovin SDK key. Please take a look at https://github.com/AppLovin/AppLovin-MAX-SDK-Android/discussions/464.
Furthermore, this issue should be filed at AppLovin-MAX-SDK-Android repository for better support there. Closing this as it's not Flutter ad plugin issue.
Hi @huycozy!
Thanks for respond. However, we did double-check SDK, and in logs you can see that plugin makes double initialization of sdk one with full and correct SDK key and then second one where key is cut by 10 chars.
You can see it at second code sample.
Fist SKD is lunched with key: uCPGm3FkRLQQ95LDCZVAbs3I_C41xHHqTg4ElJyBfNcpSy1fWWq6NuON5TP1lgrDMwR5ENHulugCqisKEgRcZr
and just after it with same key but cut with 10 chars uCPGm3FkRLQQ95LDCZVAbs3I_C41xHHqTg4ElJyBfNcpSy1fWWq6NuON5TP1lgrDMwR5ENHulugC
Isn't it done by flutter plugin?
If you notice the tag of those logs D/AppLovinSdk( 2642)
which is logged from AppLovin SDK. That made me think it was caused by AppLovinSDK.
To be sure, could you please try this on an Android native project? Please select one of the native project here and add AppLovin SDK to check if the issue also appears there.
[REQUIRED] Step 1: Describe your environment
build.gradle:
pubspec.yaml
google_mobile_ads: 3.0.0
Android manifest: After finding this bug I have also added to application tag (but above activity):
[REQUIRED] Step 2: Describe the problem
When initializing AppLoving plugin SDK key is cut by 10 chars.
And then later in app I can see two (inicializations?) of AppLovinSdk, one with proper key and second with 10 chars short
Results are that none of AppLoving ads are loaded when testing on single source bidding. (Admob ones works fine).
Flutter code in main:
I have tried, disabling initializations, working only with one type of ad (banner). But still I always get multiple SDK instances detected warning and double inicialization with one sdk key cut by 10 chars. I will be super gratful for any help or tips!