diff --git a/.changes/core-windows-notification-sound.md b/.changes/core-windows-notification-sound.md new file mode 100644 index 000000000000..9057e5c49e3a --- /dev/null +++ b/.changes/core-windows-notification-sound.md @@ -0,0 +1,5 @@ +--- +"tauri": "patch" +--- + +Play a sound when showing a notification on Windows. diff --git a/core/tauri/src/api/notification.rs b/core/tauri/src/api/notification.rs index 8110f52ddf64..aaf9249339b4 100644 --- a/core/tauri/src/api/notification.rs +++ b/core/tauri/src/api/notification.rs @@ -119,6 +119,9 @@ impl Notification { { notification.app_id(&self.identifier); } + + // will be parsed as a `::winrt_notification::Sound` + notification.sound_name("Default"); } #[cfg(target_os = "macos")] {