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

BackgroundUploadMonitorService: Delay exit to avoid flapping notifications #91

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

chenxiaolong
Copy link
Owner

We can't use Android's builtin deferred notifications for foreground services because deferring once makes subsequent notifications temporarily ineligible for deferral. This causes notifications to rapidly appear and disappear when a client app writes many small files. We can work around this by just keeping the service around for 1 second longer than necessary.

…tions

We can't use Android's builtin deferred notifications for foreground
services because deferring once makes subsequent notifications
temporarily ineligible for deferral. This causes notifications to
rapidly appear and disappear when a client app writes many small files.
We can work around this by just keeping the service around for 1 second
longer than necessary.

Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong chenxiaolong self-assigned this Oct 25, 2024
chenxiaolong added a commit that referenced this pull request Oct 25, 2024
Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong chenxiaolong merged commit 4b419df into master Oct 25, 2024
1 check passed
@chenxiaolong chenxiaolong deleted the notification-flapping branch October 25, 2024 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant