Sean Barbeau
Jun 10, 2022

--

Thanks! That’s correct, the service is only needed if you want location updates to continue after the user navigates away from the UI (Activity). In my case, I wanted the app to continue logging locations to a file in the background. But the solution will work fine without it — the service is just another observer of the repository via the flow.

--

--

Sean Barbeau
Sean Barbeau

Written by Sean Barbeau

Improving the world, one byte at a time. @sjbarbeau, https://github.com/barbeau, https://www.linkedin.com/in/seanbarbeau/. I work @CUTRUSF. Posts are my own.

No responses yet