Open grote opened 3 weeks ago
Some related docs: https://developer.android.com/about/versions/15/changes/foreground-service-types
If the timeout period is reached, the system calls the service's Service.onTimeout(int, int) method. At this time, the service has a few seconds to call [
Service.stopSelf()
](https://developer.android.com/reference/android/app/Service#stopSelf()). If the service does not callService.stopSelf()
, an ANR will occur with this error message: "A foreground service ofdid not stop within its timeout: ".
However, our workers automatically use androidx.work.impl.foreground.SystemForegroundService
, so we can't fix this ourselves. Maybe there's a WorkManager bug for this upstream.