Skip to content

feat: support notification priority on Windows#50225

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

feat: support notification priority on Windows#50225
jkleinsc merged 2 commits intomainfrom
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
Copy link
Copy Markdown
Member

@erickzhao erickzhao left a comment

Choose a reason for hiding this comment

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

API LGTM

Copy link
Copy Markdown
Member

@jkleinsc jkleinsc left a comment

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
112 of 113 checks passed
@jkleinsc jkleinsc deleted the toast-priority branch March 19, 2026 19:44
@release-clerk
Copy link
Copy Markdown

release-clerk bot commented Mar 19, 2026

Release Notes Persisted

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

@trop
Copy link
Copy Markdown
Contributor

trop bot commented Mar 19, 2026

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
Copy link
Copy Markdown
Contributor

trop bot commented Mar 19, 2026

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