Skip to content

AppLovinMAX.initialize(key) is Taking very long time to initialize #335

@ycv005

Description

@ycv005

MAX Plugin Version

applovin_max: ^4.5.0

Flutter Version

3.29.3

Device/Platform Info

Most of the Devices

Current Behavior

Pre-Information

  • I have test this via Very fast Wifi connection on a real actual device. Also, I have test 7 different android phone. Thus, logs are attached of 1 device only.
  • Problem of load of ads or failure to init is only FIRST and FIRST time, next time, it is fast. Thus, I am not making it in await call, since it is causing huge start up load time and causing bad experience

Code snippet that I am init (this is my init at the very very begining of my app init)

Future<void> initializeAppLovinMAX() async {
  AppLovinMAX.setVerboseLogging(true);
  // AppLovinMAX.setTestDeviceAdvertisingIds(
  //     []);
  AppLovinMAX.initialize(AppConfig.getAppLovinSdkKey())
      .then((MaxConfiguration? configuration) async {
    if (configuration != null) {
      AppLovinMAX.showMediationDebugger();
    }
  });
}

first_time_real_samsung_device_with_verbose_with_show_debugger.txt

Flutter Version

  • Flutter (Channel [user-branch], 3.29.3, on macOS 13.1 22C65 darwin-arm64, locale en-IN)

applovin_version - applovin_max: ^4.5.0

android/app/buid.gradle

dependencies {
    implementation "androidx.multidex:multidex:2.0.1"
    implementation 'com.google.firebase:firebase-messaging:23.4.1'

    // applovin mediation
    implementation('com.android.billingclient:billing:4.0.0')
    // google ad manager via applovin mediation
    implementation 'com.applovin.mediation:google-ad-manager-adapter:+'
    // facebook audience network via applovin mediation
    implementation 'com.applovin.mediation:facebook-adapter:+'
    // unity ads via applovin mediation
    implementation 'com.applovin.mediation:unityads-adapter:+'
    implementation 'com.facebook.infer.annotation:infer-annotation:0.18.0'
    // Amazon Ads via applovin mediation
    // implementation 'com.applovin.mediation:amazon-tam-adapter:+'
    // implementation 'com.amazon.android:aps-sdk:+'
    // implementation 'com.iabtcf:iabtcf-decoder:+'

    // inmobi via applovin mediation
    implementation 'com.applovin.mediation:inmobi-adapter:+'
    implementation 'com.squareup.picasso:picasso:2.8'
    implementation 'androidx.recyclerview:recyclerview:1.1.0'
    // liftoff via applovin mediation
    // implementation 'com.applovin.mediation:vungle-adapter:+'
    
    coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.4'
}

Request

  • Please seriously, i need help and I am facing this from very very long time (I saying I have tried fixing all the rest of Issue via DevTools i.e., networking + memory + performance, before again reaching to you. Yes, after these fixes, I got better ads impression, but again, initialization time is yet not solved by me.)

Few open quesitons

  • How can I know which network ?
  • I have tired Preloading of Banner Ads but when AppLovin is not Initialized, then how it will be useful ?
  • I am also using google_mobile_ads via google admanager (mediation network added are meta + unity) and it is very very quick.

Expected Behavior

  • Fast loading of the Applovin in the first time.

How to Reproduce

Test with Demo app or normal implementation of the Applovin

Reproducible in the demo app?

Yes

Additional Info

No response

Metadata

Metadata

Labels

bugSomething isn't workingin progressThis is currently being worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions