Skip to content

feat: add remove, removeAll, and removeGroup for notifications API - #51691

Merged
jkleinsc merged 2 commits into
42-x-yfrom
trop/42-x-y-bp-feat-add-remove-removeall-and-removegroup-for-notifications-api-1779138267350
May 20, 2026
Merged

jkleinsc merged 2 commits into
42-x-yfrom
trop/42-x-y-bp-feat-add-remove-removeall-and-removegroup-for-notifications-api-1779138267350

Conversation

@trop

@trop trop Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor

Backport of #51182

See that PR for details.

Notes: Added Notification.remove(), removeAll(), and removeGroup() static methods for macOS.

trop Bot and others added 2 commits May 18, 2026 21:04
…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]>

Co-authored-by: Keeley Hammond <[email protected]>
Co-authored-by: Keeley Hammond <[email protected]>
@trop
trop Bot requested a review from VerteDinde May 18, 2026 21:04
@trop trop Bot added 42-x-y backport This is a backport PR backport/requested 🗳 semver/minor backwards-compatible functionality labels May 18, 2026
@jkleinsc
jkleinsc merged commit bbf87a7 into 42-x-y May 20, 2026
132 of 135 checks passed
@jkleinsc
jkleinsc deleted the trop/42-x-y-bp-feat-add-remove-removeall-and-removegroup-for-notifications-api-1779138267350 branch May 20, 2026 19:50
@release-clerk

release-clerk Bot commented May 20, 2026

Copy link
Copy Markdown

Release Notes Persisted

Added Notification.remove(), removeAll(), and removeGroup() static methods for macOS.

@mlaurencin

Copy link
Copy Markdown
Member

Was approved by @electron/wg-releases
(for future reference)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

42-x-y backport/approved ✅ backport This is a backport PR semver/minor backwards-compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants