-1
We created a GPS monitoring application, every 30 seconds or so the application updates the user’s position on the server. With the recent changes of Android 8 and following, we saw that the issue of battery use was greatly enhanced by android, which causes some devices/ manufacturers, kill services that run in the background after a while. And basically that’s what’s happening to us, especially on Xiaomi devices.
The question is, is it possible to circumvent this scenario? Recreate a service whenever it is killed by android?