Skip to content

Foreground services can only run for 6 hours tops during a day #5338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
TimoPtr opened this issue May 20, 2025 · 2 comments
Open

Foreground services can only run for 6 hours tops during a day #5338

TimoPtr opened this issue May 20, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@TimoPtr
Copy link
Collaborator

TimoPtr commented May 20, 2025

Since API 35 Google introduced a timeout that forbid all an app to have foreground services running for more than 6 hours (sum of all the foreground services) during a day.

Checks if it impacts our features and if we can reach this limit.

https://developer.android.com/about/versions/15/behavior-changes-15#datasync-timeout

@TimoPtr TimoPtr added the enhancement New feature or request label May 20, 2025
@dshokouhi
Copy link
Member

how does this impact high accuracy mode and persistent connection that can be left on indefinitely?

@TimoPtr
Copy link
Collaborator Author

TimoPtr commented May 21, 2025

I tried to play with the ADB command to reduce the timeout to 5mn and it kept the persistent connection so I'm not sure the ADB command is working. We need to test more deeply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants