Skip to content

About

A C# library for sending native system notifications across multiple desktop platforms. Supports Windows, Linux, and macOS.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

Repository files navigation

NativeNotification

NuGet Version

A C# library for sending native system notifications across multiple desktop platforms. Supports Windows (toast notifications), Linux (freedesktop.org), and macOS (NSUserNotification).

Setup

dotnet add package NativeNotification

Quick Start

var manager = ManagerFactory.GetNotificationManager(new NativeNotificationOption() { AppName = "AppName" });
var notification = manager.Create();
notification.Title = "Title";
notification.Message = "Hello Message.";
notification.Buttons.Add(new ActionButton("Button Text", () => Console.WriteLine("button clicked.")));
notification.Show(new NotificationDeliverOption() { Duration = TimeSpan.FromSeconds(10) });

Platform Support

Windows Linux macOS
TFM requirements net8.0-windows10.0.17763.0 net8.0 net10.0-macos
Minimum OS version Windows 10, version 1809 — macOS 12
Title ✅ ✅ ✅
Message ✅ ✅ ✅
Duration ✅ ✅ ✅
Images ✅ ✅ ✅
Progress Bars ✅ ❌️ ❌️
Notification Actions ✅ ✅ ✅
Clear Delivered Notifications ✅ ✅ ✅
Get Delivered Notifications ✅ ✅ ✅
Replace Notifications ✅ ✅ ✅

Dependencies

Microsoft.Toolkit.Uwp.Notifications

Tmds.DBus

About

A C# library for sending native system notifications across multiple desktop platforms. Supports Windows, Linux, and macOS.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages