Skip to content
RED SAGSkills
hard20 pts · first answer countsandroidflowlifecycle

Collecting a Flow in a Fragment

A View-based screen collects a location Flow with lifecycleScope.launch { flow.collect { … } }. It keeps collecting and using GPS while the app is in the background. What is the fix?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions