DesktopNotifications

A cross-platform C# library for native desktop "toast" notifications.

Build Nuget Nuget

Screenshot (Linux)

Screenshot (Windows)

Features

Windows Linux (FreeDesktop) OSX
Show notifications
Schedule notifications ✓*
Launch actions**
Replacing notifications
Buttons
Advanced content (Audio, Images, etc)

* Scheduled notifications will only be delivered while the application is running.
** Some platforms support launching your application when the user clicked a notification. The associated action identifier is passed as a command-line argument.

Avalonia

The DesktopNotifications.Avalonia package offers support for the Avalonia project. It doesn't do much on its own, it just provides helpers to register the INotificationManager with the application builder. You can see an example of it in the Example.Avalonia project.

Help wanted

My MacBook Pro is 11 years old now and it does not run OSX Mojave or higher. Unfortunately, Apple deprecated NSUserNotificationCenter with OSX 10.14 and I suppose they want us to use the newer UNUserNotificationCenter API instead. I would kindly appreciate any contributions from folks that own a more modern Mac and are interested in implementing the OSX backend using the new API.

License

See License

S
Description
A cross-platform C# library for native desktop "toast" notifications.
Readme 383 KiB
Languages
C# 98.3%
Objective-C++ 1.7%