android icon indicating copy to clipboard operation
android copied to clipboard

HighAccuracyLocationService should implement onTimeout

Open TimoPtr opened this issue 9 months ago • 0 comments

Starting with API 35 all the foreground service has the implement onTimeout and properly react to this callback. This is important now that Google is enforcing a timeout of 6h https://developer.android.com/about/versions/15/behavior-changes-15#datasync-timeout.

Check https://cs.android.com/androidx/platform/frameworks/support/+/bb8cbc00d4a45560dee41c91fe942bde37e0f3c1:work/work-runtime/src/main/java/androidx/work/impl/foreground/SystemForegroundService.java;l=116 for an implementation that works in multiple API level

TimoPtr avatar May 20 '25 09:05 TimoPtr