So im really new to android programming and I have a jetpack compose app that currently displays an map. I want to periodically (every couple seconds) fetch a Rest server I wrote to get Location Data and display that data on the Map.
I already have the map and basic Rest API stuff working ( using the retrofit library) but I now have to move those calls in a backround threat and use their data when the request returns it.
What would yall use here? I found online a couple of solutions including workmanager, coroutines and services but the more i google the more i get confused…
Thanks for any help!
submitted by /u/ReyBenKrieger
[link] [comments]