Have some Questions about App Start Up i use Dagge...
# android
i
Have some Questions about App Start Up i use Dagger/hilt and some Initializer ( For Tracking and for some suspend network call and accessing room) . Now on some devices i have ANR`s because app starts to slow get this at android.app.ActivityThread.handleBindApplication. I have 2 Initializer for Network Calls that calls Usescases with CoroutineScope(SupervisorJob() + Dispatchers.IO) and 1 Initializer that uses cleanup usecase with CoroutineScope(SupervisorJob() + Dispatchers.Default) for room . and 1 Initializer for Bugsnag.start The question is it valid to use Coroutines in Initializer? can mybe changeing the Dispatcher for cleanup to CoroutineScope(SupervisorJob() + Dispatchers.IO) can make a change or how can i optimize that startup? or mybe thats not the problem?
not kotlin but kotlin colored 2
c
Image from iOS.jpg