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

Can't avoid empty group summary notifications when dimissing child notifications #2300

Open
auradigitaldev opened this issue Apr 16, 2024 · 0 comments

Comments

@auradigitaldev
Copy link

auradigitaldev commented Apr 16, 2024

I'm running into an issue with group notifications. Basically, I want notifications from my app to always be grouped, but I never want the group summary to be able to be shown on its own. To accomplish this, every time any number of notifications is scheduled at a specific time, I also schedule a group notification (because there's no way of knowing whether a group notification is active when the new notifications fire). However, I've been realizing that this means that if I schedule two sets of notifications, I'll have two group notifications and so after dismissing all the child notifications, an empty group notification will show.

Is there any way around this issue? I'm trying to imitate the behavior of other to-do list apps such as Google Tasks and Todoist, which both seem to be able to pull off this desired behavior. The most promising approach to me was to cancel all active notifications if the only active notifications remaining after a notification tap are all group notifications, but this doesn't work to dismiss group notifications when the user swipes away the child notifications instead of tapping on them. I also tried making all my group notifications fire with the same notification ID, but we're not allowed to have 2 pending notifications with the same ID.

@auradigitaldev auradigitaldev changed the title Can't avoid empty group summary notifications when dimissing standard notifications Can't avoid empty group summary notifications when dimissing child notifications Apr 16, 2024
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

No branches or pull requests

1 participant