DesktopNotificationsNet8.Avalonia 1.3.3

dotnet add package DesktopNotificationsNet8.Avalonia --version 1.3.3                
NuGet\Install-Package DesktopNotificationsNet8.Avalonia -Version 1.3.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DesktopNotificationsNet8.Avalonia" Version="1.3.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DesktopNotificationsNet8.Avalonia --version 1.3.3                
#r "nuget: DesktopNotificationsNet8.Avalonia, 1.3.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DesktopNotificationsNet8.Avalonia as a Cake Addin
#addin nuget:?package=DesktopNotificationsNet8.Avalonia&version=1.3.3

// Install DesktopNotificationsNet8.Avalonia as a Cake Tool
#tool nuget:?package=DesktopNotificationsNet8.Avalonia&version=1.3.3                

DesktopNotifications

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

Build Nuget Nuget

Screenshot (Linux)

Screenshot (Windows)

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 Compatible and additional computed target framework versions.
.NET net8.0-windows10.0.17763 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.3 196 10/10/2024
1.0.0 107 10/10/2024