Swap GlobalScope with lifecycle friendly alternatives.
Opened this issue · 0 comments
pascaldornfeld commented
The app is using GlobalScope
for all kinds of coroutines. This is not lifecycle friendly and can cause leaks. Better use lifecycleScopes
from androidx
and supervised jobs
.
Application code usually should use an application-defined CoroutineScope. Using async or launch on the instance of GlobalScope is highly discouraged.