Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System tray/taskbar icon/notify icon with universal apps

Is there any API I can use to create systray icons in universal apps, or is this a no-no? In that case, what should I use instead, can I somehow integrate my app into the action center or is that MS-only?

like image 301
Martin Avatar asked Aug 02 '15 15:08

Martin


People also ask

How do I get notification icon on taskbar?

To change how icons and notifications appearPress and hold or right-click any empty space on the taskbar and select Taskbar settings. Under Taskbar corner icons: Select On for any icons you want to see on the taskbar. Select Off for any icons you don't want to see on the taskbar.

What is taskbar and system tray?

The system tray (or "systray") is a section of the taskbars in the Microsoft Windows operating system (OS) user interface that provides easy access icons to the user's most commonly used apps and displays the clock. A system tray is also available in other OSes such as Linux, Mac OS, Android and iOS.

What displays all system notifications in system tray?

To show all system icons in the notification area in Windows 11, you can use Windows Settings. Press Win+I to open the Windows Settings panel. Then, go to Personalization > Taskbar and expand the Taskbar corner icons section. From here, toggle the buttons to enable system icons.


1 Answers

I'm sorry but I think that is not possible: the only option would be to develop a companion win32 program that creates the icon and establish some sort of communication between both (the win32 app could launch the UWP app, and the UWP could send status info to the win32 app). That would mean that one of the problems should have to install the other one, it is not trivial and many users won't like to have background tasks.

I think you should try to adapt to the W10 UX: use a live tile for any status/notification, allow to pin secondary live tiles that perform certain actions, and integrate with Cortana.

Integration in the action center is not possible, unless you want to create a permanent notification that performs some action when clicked, but that would probably annoy users.

Edit (6/24/2017): It is now possible to use Win32 extensions to add this functionality to a UWP app, see this tutorial for reference.

like image 137
Arcadio Garcia Avatar answered Oct 04 '22 06:10

Arcadio Garcia