79542465

Date: 2025-03-28 21:47:11
Score: 0.5
Natty:
Report link

In case anyone reading this wants to do this cross-platform, I just made a library myself which shows notifications using built-in Linux/MacOS/Windows notification managers: OsNotifications. You can just install it via NuGet:

dotnet add package OsNotifications

To display a notification, just add the following code:

// Necessary for MacOS (you can change it to your own identifier)
Notifications.BundleIdentifier = "com.apple.finder";
// The first argument is necessary, the last two are not. The third argument is only used on MacOS
Notifications.ShowNotification("notification-title", "message", "extra-info");

Currently it only shows very basic notifications, but it works on the three OSes mentioned before. I will continue developing it according to the people's needs, so if anyone sees this and is missing a specific feature, just create an issue on GitHub.

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: DemonExposer