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

await AppLovinMAX.initialize(initAppLovinKey) is Taking huge time to init #225

Open
ycv005 opened this issue Jun 23, 2024 · 4 comments
Open
Labels
bug Something isn't working stale This isue has been inactive

Comments

@ycv005
Copy link

ycv005 commented Jun 23, 2024

MAX Plugin Version

applovin_max: 3.8.0 and applovin_max: ^3.10.1

Flutter Version

Flutter (Channel stable, 3.22.0, on macOS 13.1 22C65 darwin-arm64, locale en-IN)

Device/Platform Info

Android

Current Behavior

I am currently initializing the AppLovinMAX SDK but it is taking so much time to init (more than 4-5 sec). I tried with 5G mobile data, 50 Mbps wifi, still same issue.

  • I Thought to initialize AppLovinMAX SDK without await at starting but I fear and sure enough that Ads will not be display. Kindly, suggest or direct a better way to handle this. If this is an issue then how we can improve this. I have also google_mobile_ads but it initialize around 600 to 800 ms (milisecond).

Note

  • I have also enable some of mediation network from AppLovin DashBoard (AppLovin, Google Admanager, Facebook, Unity). Does more mediation network effect initializing the AppLovinMAX SDK time ?
  • Even in Debug mode, it is taking more time to initialize the AppLovinMAX SDK

Expected Behavior

Initializing the AppLovinMAX SDK should be fast enough.

How to Reproduce

  • Try a Demo verion on Real and Actual environment where Actual Ads are displayed using AppLovin Flutter Package.

Additional Info

No response

@ycv005 ycv005 added the bug Something isn't working label Jun 23, 2024
@ycv005
Copy link
Author

ycv005 commented Jun 23, 2024

Does below step will be helpful?

  • Initialize before creating MyApp i.e., using runApp (but without await). This will trigger to initialization to server.
  • Now in my other Page like Splash Screen where MyApp will navigate first, then their again Initialize AppLovin SDK with await. I believe after this step, it will navigate to Home Page with AppLovin SDK completed initialization and then Ads will be visible.

Doubts

  • What will be drawback of this step?
  • Will it decrease time of initialization?

@ycv005
Copy link
Author

ycv005 commented Jun 25, 2024

@alhiwatan @thomasmso Can you please help here ?

@alhiwatan
Copy link
Collaborator

The SDK initialization time can vary depending on your network conditions and the specific ad networks you integrate, with some ad networks potentially taking longer than others. Using a splash screen during initialization is a good idea as it provides feedback to the user while they wait. However, this will probably not decrease the total initialization time. Ultimately, how you implement this to meet your goals is up to you.

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale This isue has been inactive label Nov 12, 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 stale This isue has been inactive
Projects
None yet
Development

No branches or pull requests

2 participants