I want to make an application that gets the phone location each 30 min and save it to a DB (and transmits to a webserver).
The application should be running in the background for a few hours while the user can be doing other things with his phone (games, calls...)
Can someone please advice what is the best solution for this project? (Service? AlermManager?)