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

Close sticky notification when the user stops the app / background process by swiping up in running app list #134

Closed
2 tasks done
leaf-node opened this issue Nov 7, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@leaf-node
Copy link
Member

leaf-node commented Nov 7, 2024

When this happens, the app is stopped, apparently including background processes. So to avoid confusion, the sticky notification that claims the app is syncing should be removed by the app.

  • Research whether there's time to clean up right before the app is fully terminated by the system
  • Look into a way to mark the notification so it's automatically cleaned up
@leaf-node leaf-node added the bug Something isn't working label Nov 7, 2024
@leaf-node leaf-node added this to the Public Release milestone Nov 7, 2024
@leaf-node
Copy link
Member Author

When removing an app from the task list, the background service may continue to function for several minutes or so, but eventually it does seem to clear out, at least on my physical device.

I'll likely have to write a patch according to MaikuB/flutter_local_notifications#207 (comment). I'll have to look into using Service.onDestroy() or a related method to clear out notifications tagged in the flutter_local_notifications plugin.

@leaf-node
Copy link
Member Author

See the upstream issue: MaikuB/flutter_local_notifications#2457

@leaf-node
Copy link
Member Author

This should be working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant