Skip to content
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

Start a foreground service during restore #722

Merged
merged 2 commits into from
Sep 5, 2024

Commits on Aug 21, 2024

  1. Start a foreground service during restore

    so the system won't kill us, even if the user navigates away.
    grote committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    639947b View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2024

  1. Don't use Context#startForegroundService() because we may get killed

    If the foreground service doesn't have anything to do and terminates quickly, the system will kill us, even though the service had called startForeground(). To prevent this, we don't promise that our service will be a foreground service. We can still be a foreground service, but escape the punishment if we are too quick.
    grote committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    d266c36 View commit details
    Browse the repository at this point in the history