DesktopNotificationsNet8.FreeDesktop
1.3.3
dotnet add package DesktopNotificationsNet8.FreeDesktop --version 1.3.3
NuGet\Install-Package DesktopNotificationsNet8.FreeDesktop -Version 1.3.3
<PackageReference Include="DesktopNotificationsNet8.FreeDesktop" Version="1.3.3" />
paket add DesktopNotificationsNet8.FreeDesktop --version 1.3.3
#r "nuget: DesktopNotificationsNet8.FreeDesktop, 1.3.3"
// Install DesktopNotificationsNet8.FreeDesktop as a Cake Addin #addin nuget:?package=DesktopNotificationsNet8.FreeDesktop&version=1.3.3 // Install DesktopNotificationsNet8.FreeDesktop as a Cake Tool #tool nuget:?package=DesktopNotificationsNet8.FreeDesktop&version=1.3.3
DesktopNotifications
A cross-platform C# library for native desktop "toast" notifications.
Features
Windows | Linux (FreeDesktop.DBus) | OSX | |
---|---|---|---|
Show notifications | ✓ | ✓ | ✕ |
Hide notifications | ✓ | ✓ | ✕ |
Schedule notifications | ✓ | ✓* | ✕ |
Launch actions | ✓** | ✕ | ✕ |
Replacing notifications | ✕ | ✕ | ✕ |
Buttons | ✓ | ✓ | ✕ |
Audio | ✕ | ✕ | ✕ |
Images | ✓ | ✓*** | ✕ |
<sub> * Scheduled notifications will only be delivered while the application is running. </sub>
<sub> ** This is currently not supported when targeting .netstandard </sub>
<sub> *** If supported by the notification server </sub>
Application Context
Most operating systems require you to register the application in some form before you can actually send notifications. This registration process is handled by the ApplicationContext
. On Windows (see WindowsApplicationContext
) it will create and assign a Application User Model Id to the current process and associate a shell link in the start menu with it. This will cause your application to appear in the Windows Start Menu. On Linux/FreeDesktop.DBUS, the application context is just holding the name and optional icon of your application.
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
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-windows10.0.17763 is compatible. |
-
net8.0-windows10.0.17763
- DesktopNotificationsNet8 (>= 1.3.3)
- Tmds.DBus (>= 0.20.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on DesktopNotificationsNet8.FreeDesktop:
Package | Downloads |
---|---|
DesktopNotificationsNet8.Avalonia
A cross-platform C# library for native desktop "toast" notifications. |
GitHub repositories
This package is not used by any popular GitHub repositories.