Repository navigation
feat: add remove, removeAll, and removeGroup for notifications API - #51182
Merged
Merged
Conversation
…tic methods (macOS) Add static methods for removing delivered notifications from Notification Center via the UNUserNotificationCenter API: - `remove(id)` removes one or more notifications by identifier (accepts string or string array) - `removeAll()` removes all of the app's delivered notifications - `removeGroup(groupId)` removes all notifications with a given groupId These methods build on the custom id/groupId support and getHistory() to enable full notification lifecycle management from the main process. Co-Authored-By: Claude <[email protected]>
VerteDinde
force-pushed
the
feat/notification-remove-methods
branch
from
April 27, 2026 19:50
ea58ddb to
f9cdfeb
Compare
VerteDinde
marked this pull request as ready for review
May 13, 2026 21:11
itsananderson
approved these changes
May 14, 2026
itsananderson
left a comment
Member
There was a problem hiding this comment.
API LGTM
Release notes mention mac and windows, but he docs/implementation seem to be Mac only. I'm guessing there will be a follow-up PR to add Windows support, but we should make sure the release notes match the implementation.
jkleinsc
approved these changes
May 18, 2026
Member
|
Not sure why cation is fighting this one. I'm merging as it has the needed API reviews. |
|
Release Notes Persisted
|
This was referenced May 18, 2026
Contributor
|
I have automatically backported this PR to "43-x-y", please check out #51690 |
Contributor
|
I have automatically backported this PR to "42-x-y", please check out #51691 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
This PR adds Notification.remove(), removeAll(), removeGroup() static methods for macOS.
Add static methods for removing delivered notifications from Notification Center via the UNUserNotificationCenter API:
remove(id)removes one or more notifications by identifier (accepts string or string array)removeAll()removes all of the app's delivered notificationsremoveGroup(groupId)removes all notifications with a given groupIdThese methods build on the custom id/groupId support and getHistory() to enable full notification lifecycle management from the main process.
Checklist
npm testpassesRelease Notes
Notes: Added Notification.remove(), removeAll(), and removeGroup() static methods for macOS.