Skip to content

feat: support notification priority on Windows - #50225

Merged
jkleinsc merged 2 commits into
mainfrom
toast-priority
Mar 19, 2026
Merged

jkleinsc merged 2 commits into
mainfrom
toast-priority

Conversation

@codebytere

Copy link
Copy Markdown
Member

Description of Change

Add Windows notifications support urgency/priority levels. This maps the existing urgency option (previously Linux-only) to Windows toast notification priorities:

  • 'critical' maps to ToastNotificationPriority_High, which sorts the notification above default-priority items in Action Center.
  • 'normal' and 'low' both map to ToastNotificationPriority_Default.

Note that on Windows, 'critical' priority does not prevent the toast from being auto-dismissed. Users should additionally set timeoutType to 'never' for that behavior.

Checklist

Release Notes

Notes: Notes: Added support for the urgency option in Notifications on Windows.

Add Windows notifications support urgency/priority levels.
This maps the existing `urgency` option (previously Linux-only) to
Windows toast notification priorities:

- 'critical' maps to ToastNotificationPriority_High, which sorts the
  notification above default-priority items in Action Center.
- 'normal' and 'low' both map to ToastNotificationPriority_Default.

Note that on Windows, 'critical' priority does not prevent the toast
from being auto-dismissed. Users should additionally set `timeoutType`
to 'never' for that behavior.
@codebytere codebytere added semver/minor backwards-compatible functionality target/41-x-y PR should also be added to the "41-x-y" branch. labels Mar 12, 2026
@codebytere
codebytere requested a review from a team March 12, 2026 15:31

@erickzhao erickzhao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@jkleinsc jkleinsc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@github-actions github-actions Bot added the target/42-x-y PR should also be added to the "42-x-y" branch. label Mar 13, 2026
@jkleinsc
jkleinsc merged commit d9649f9 into main Mar 19, 2026
111 of 112 checks passed
@jkleinsc
jkleinsc deleted the toast-priority branch March 19, 2026 19:44
@release-clerk

release-clerk Bot commented Mar 19, 2026

Copy link
Copy Markdown

Release Notes Persisted

Notes: Added support for the urgency option in Notifications on Windows.

@trop

trop Bot commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "41-x-y", please check out #50382

@trop trop Bot added in-flight/41-x-y and removed target/41-x-y PR should also be added to the "41-x-y" branch. labels Mar 19, 2026
@trop

trop Bot commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "42-x-y", please check out #50383

@trop trop Bot added in-flight/42-x-y merged/41-x-y PR was merged to the "41-x-y" branch. and removed target/42-x-y PR should also be added to the "42-x-y" branch. in-flight/41-x-y in-flight/42-x-y labels Mar 19, 2026
@trop trop Bot added the merged/42-x-y PR was merged to the "42-x-y" branch. label Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-review/approved ✅ merged/41-x-y PR was merged to the "41-x-y" branch. merged/42-x-y PR was merged to the "42-x-y" branch. semver/minor backwards-compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants