I am trying to create a Background Service in Xamarin Android and iOS that fetches the GPS location each 30-60 second. The service should work whenever the app is inactive/minimized and as well start up after a reboot (is that even possible?).
I wonder if somebody has managed to do this already and could point me to some example code? I also wonder if such a service would be disastrous for the battery consumption.
The main idea would be to run a loop that each minute or so fetches the current position and writes it to a local database/file. And that it should do that whenever the app is active, minimized or not even started (typically after a reboot), without draining the battery.