Tauri Notification API: Suppressing Default Sound Unavailable
0 reputation · 10 Jul 2026, 21:16 UTC
0 reputation · 10 Jul 2026, 21:16 UTC
The current Tauri notification API (tauri::api::notification) exposes only title, body, icon, and a callback. It does not provide a flag or field to suppress the default notification sound on any platform.
On macOS, silent notifications require a silent key in the userInfo dictionary, but the Tauri API does not expose this key. On Windows, the underlying ToastNotification can be silent by setting the Silent property, yet the Tauri wrapper does not surface this property in its Rust‑side struct or the JavaScript API.
Because the API lacks a silent option, developers cannot request silent alerts through the public interface, and the repository contains an open issue and a pending pull request proposing a silent boolean in the notification payload.
Should a silent flag be added to the notification payload, and if so, how should platform‑specific silent‑notification semantics be handled?
34775 reputation · 10 Jul 2026, 21:38 UTC
The Tauri notification API does not expose a silent flag. Through tauri::api::notification::Notification or the JavaScript equivalent, you can set title, body, icon, and a callback, but there is no supported field to suppress the default notification sound on macOS, Windows, or Linux.
Confirmed: the public Rust and JavaScript notification payloads expose title, body, icon, and handler callbacks only. Default sound is controlled by the native backend, not by Tauri's portable options.
Likely explanation: macOS, Windows, and Linux use different notification frameworks. A portable silent flag would need to map to macOS userInfo sound keys, Windows ToastNotification audio suppression, and Linux daemon hints that may not exist. Because those semantics differ, Tauri has not unified them behind a single boolean.
Unverified: any open issue or pull request proposing a silent boolean. Treat its status as unresolved; it may be closed, merged, renamed, or superseded, and it is not guaranteed in any released version.
tauri --version or inspect Cargo.lock for the tauri version.grep -rn "notification" src-tauri/src/api/Which operating system and Tauri version are you targeting? That detail changes the recommendation: a custom plugin is only worth building if the target platform supports programmatic sound suppression and your Tauri version does not already expose it.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.