Windows 10 Desktop Notifications

I'm trying to figure out how to create simple desktop notifications on my Windows 10 machine. I found notify-rust and winrt-notification on crates.io but the examples from the docs don't work on my machine - I don't get an error or anything like that, the program executes but nothing happens.

notify-rust example:

use notify_rust::Notification;
Notification::new()
    .summary("Firefox News")
    .body("This will almost look like a real firefox notification.")
    .icon("firefox")
    .show()?;

winrt_notification example:

extern crate winrt_notification;
use winrt_notification::{Duration, Sound, Toast};

fn main() {
    Toast::new(Toast::POWERSHELL_APP_ID)
        .title("Look at this flip!")
        .text1("(╯°□°)╯︵ ┻━┻")
        .sound(Some(Sound::SMS))
        .duration(Duration::Short)
        .show()
        .expect("unable to toast");
}

Has anyone else had any luck with these, or am I missing something? I'm on Windows 10 home edition.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.