You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been writing a version of this crate but with interaction support based on the NSUserNotification Library.
Here is a working example: https://github.com/dscso/mac-notifications
letmut provider = NotificationProvider::new("Terminal");// callback for notification interaction
provider.set_callback(|id, resp| {println!("Notification {} clicked: {:?}", id, resp);});// sends notificationNotification::new().title("Hello").reply(true).send().unwrap();// run the main loop. If some notification gets interacted with, the callback will be calledfor _ in0..50{
provider.run_main_loop_once();}
I've improved
memory leaks (now there should be none)
expose delegate (user of the library can set a new delegate)
For the integration of the UNNotification version I don't have a key to sign applications and therefore test it. So I can't help with this. But I can work on a PR for the NSNotificaiton
I have been writing a version of this crate but with interaction support based on the NSUserNotification Library.
Here is a working example:
https://github.com/dscso/mac-notifications
I've improved
main_loop
(like in Version 2 #51)What has to be done:
Maybe this could be combined with #51 to create a full 2.0?
The text was updated successfully, but these errors were encountered: