Closed LazyBonesLZ closed 2 weeks ago
@LazyBonesLZ - Thanks for reporting this. We can investigate, but in the meantime you can initialize our SDK (basically, any calls to AppLovinSdk.getInstance(...)
in a bg thread to work around this.
@LazyBonesLZ - Thanks for reporting this. We can investigate, but in the meantime you can initialize our SDK (basically, any calls to
AppLovinSdk.getInstance(...)
in a bg thread to work around this.
Hi, thanks for your reply. You mean I should initialize SDK in a thread but not on main thread?
following is my code:
BaseApplication.runOnUiThread(()->{
AppLovinSdk.getInstance( mainActivity ).setMediationProvider( "max" );
AppLovinSdk.initializeSdk( mainActivity, new AppLovinSdk.SdkInitializationListener() {
@Override
public void onSdkInitialized(final AppLovinSdkConfiguration configuration)
{
// AppLovin SDK is initialized, start loading ads
}
} );
});
That's the opposite of what I'm suggesting, you can run code in a background thread using AsyncTasks, ExecutorService, WorkManager, etc. You're running code in the UI/Main thread here.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 5 days since being marked as stale.
After integrated Max SDK v11.3.3, ANR rate seems too high, I checked some stack traces info and log , and found some details log contained keywords "com.applovin.sdk.impl.isFirstRun", could you help to find if ANR is related with it? stack trace like this:
FYI, details info was collected by ANRWatchDog and ACRA SDK, the follow screenshot is part of the details info: