Notifications and Tray Icon #13937
Replies: 2 comments
-
A friend pointed me to this in case it helps. this app does have a tray icon and notifications in Mac https://github.com/dotnet/maui-samples/tree/main/6.0/Apps/WeatherTwentyOne |
Beta Was this translation helpful? Give feedback.
-
On Windows, the app has to be running to show notifications (aka "Toasts") and it also has to be a user-desktop app (not a service). I wrote some about this on my blog, ironically in a simple little UPS monitoring app (not WPF or MAUI) and my code is in my repo. You can see where notifications are shown here in my repo (which the system tray portion receives over a named pipe from the background service). I'm also hoping MS gets with the program and adds X11 support to MAUI. Hard to believe they support a nearly useless niche like Tizen but not X11 (yes, I know it's a side-effect of the Xamarin roots). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am in the process of writing an app for a company that will interact with their UPSes (think powerchute or powerpanel). We want it to run on Windows and Mac (and later some flavors of Linux). I have done a lot of WPF development and Maui seems very similar.
I do have some questions though:
I did see this post, #130, but it did not really provide much info.
I could probably get by without the tray icon if I could get notifications working while the app is not running. However, if I need the app running, it would need to be closed to the tray area.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions