Thank you for the work that you put in, but we worked on the same issue and found a different solution that does not require a foreground service. By now we try to get the location 4 times per hour and normally this succeeds. Starting from Android 12 bakground access is already reduced, so we are mostly only getting 1-2 wakeups per hour from the system. The updates are still sufficient for the tracking detection + we are now able to get the GPS location more reliably (also the timeouts have been increased here).
Please check the development branch for more information
Thank you for the work that you put in, but we worked on the same issue and found a different solution that does not require a foreground service. By now we try to get the location 4 times per hour and normally this succeeds. Starting from Android 12 bakground access is already reduced, so we are mostly only getting 1-2 wakeups per hour from the system. The updates are still sufficient for the tracking detection + we are now able to get the GPS location more reliably (also the timeouts have been increased here).
Please check the development branch for more information