Open Aryan210 opened 2 years ago
Hi @Aryan210
To provide optimal support, we would kindly ask you to submit a support ticket to support@appsflyer.com. When submitting the ticket, please specify your AppsFlyer sign-up (account) email, app ID, reproduction steps, code snippets, logs,SDK version you used, and any additional relevant information. Thanks!
Hey, is there any issue offloading initialisation of appsflyer sdk on background thread? It is causing ANR while accessing the shared prefs in the source code of init function of appsflyerlib.
Logs - Caused by com.github.anrwatchdog.ANRError$$$_Thread main (state = BLOCKED) android.app.ContextImpl.getPreferencesDir (ContextImpl.java:558) android.content.ContextWrapper.getSharedPreferences (ContextWrapper.java:184) com.appsflyer.AppsFlyerLibCore.getSharedPreferences (AppsFlyerLibCore.java:2881) com.appsflyer.internal.referrer.GoogleReferrer.allow (GoogleReferrer.java:38) com.appsflyer.AppsFlyerLibCore.init (AppsFlyerLibCore.java:759)