Skip to content

Notification System for Tauri #6604

Answered by FabianLars
louremipsum asked this question in Q&A
Discussion options

You must be logged in to vote

Are there any alternatives which provide the same or approx. same features as notify_rust but for all 3 platforms

Hmm, i don't know of any alternative and i would imagine that it'd be the ecosystem standard over notify_rust if it would exist.

About the target_os stuff, did you see the small example in their docs? https://docs.rs/notify-rust/latest/notify_rust/index.html#toggles
Here's a small more explicit example:

let mut notification = Notification::new();
#[cfg(any(target_os = "windows", target_os = "linux"))] // For functions that don't work on macos
notification.appname("");
#[cfg(target_os = "macos")] // For functions that only work on macos
notification.some_macos_specific_fn();

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@louremipsum
Comment options

@maoyaru123
Comment options

Answer selected by louremipsum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants