{"id":14965112,"url":"https://github.com/pr8x/desktopnotifications","last_synced_at":"2025-04-04T14:06:08.987Z","repository":{"id":43350891,"uuid":"334677614","full_name":"pr8x/DesktopNotifications","owner":"pr8x","description":"A cross-platform C# library for native desktop \"toast\" notifications.","archived":false,"fork":false,"pushed_at":"2023-11-04T16:46:18.000Z","size":369,"stargazers_count":196,"open_issues_count":6,"forks_count":34,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-04T14:06:01.832Z","etag":null,"topics":["avalonia","csharp","dotnet"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pr8x.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-31T14:41:16.000Z","updated_at":"2025-04-04T07:56:22.000Z","dependencies_parsed_at":"2022-09-22T16:32:01.934Z","dependency_job_id":"d246449c-6908-4a45-a5d3-6536b85172c6","html_url":"https://github.com/pr8x/DesktopNotifications","commit_stats":{"total_commits":65,"total_committers":5,"mean_commits":13.0,"dds":0.07692307692307687,"last_synced_commit":"87210913337abfa25b790e75a9f2560e7c438a42"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pr8x%2FDesktopNotifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pr8x%2FDesktopNotifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pr8x%2FDesktopNotifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pr8x%2FDesktopNotifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pr8x","download_url":"https://codeload.github.com/pr8x/DesktopNotifications/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247190250,"owners_count":20898702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["avalonia","csharp","dotnet"],"created_at":"2024-09-24T13:34:14.295Z","updated_at":"2025-04-04T14:06:08.956Z","avatar_url":"https://github.com/pr8x.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DesktopNotifications\n\nA cross-platform C# library for native desktop \"toast\" notifications.\n\n[![Build](https://github.com/pr8x/DesktopNotifications/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/pr8x/DesktopNotifications/actions/workflows/build.yml)\n[![Nuget](https://img.shields.io/nuget/v/DesktopNotifications)](https://www.nuget.org/packages/DesktopNotifications/)\n[![Nuget](https://img.shields.io/nuget/dt/DesktopNotifications)](https://www.nuget.org/packages/DesktopNotifications/)\n\n[Screenshot (Linux)](.github/images/linux_demo_image_06_02_21.png?raw=true)\n\n[Screenshot (Windows)](.github/images/win_demo_image_06_02_21.png?raw=true)\n\n# Features\n\n|                          | Windows | Linux (FreeDesktop.DBus) | OSX |\n|--------------------------|---------|---------------------|-----|\n| Show notifications  | ✓       | ✓                   | ✕   |\n| Hide notifications  | ✓       | ✓                   | ✕   |\n| Schedule notifications | ✓       | ✓*                   | ✕   |\n| Launch actions         | ✓**       | ✕                   |  ✕   |\n| Replacing notifications                | ✕       | ✕                   |  ✕   |\n| Buttons                  | ✓       | ✓                   |  ✕   |\n| Audio                  | ✕       | ✕                   |  ✕   |\n| Images                  | ✓       | ✓***                   |  ✕   |\n\n\u003csub\u003e * Scheduled notifications will only be delivered while the application is running. \u003c/sub\u003e  \n\u003csub\u003e ** This is currently not supported when targeting .netstandard \u003c/sub\u003e  \n\u003csub\u003e *** If supported by the notification server \u003c/sub\u003e\n\n# Application Context\n\nMost 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](https://docs.microsoft.com/en-us/windows/win32/shell/appids) 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.\n\n# Avalonia\n\nThe `DesktopNotifications.Avalonia` package offers support for the [Avalonia](https://github.com/AvaloniaUI/Avalonia) project. It doesn't do much on its own, it just provides helpers to register\nthe `INotificationManager` with the application builder. You can see an example of it in the Example.Avalonia project.\n\n\n# Help wanted\n\nMy 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.\n\n# License\n\nSee [License](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpr8x%2Fdesktopnotifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpr8x%2Fdesktopnotifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpr8x%2Fdesktopnotifications/lists"}