Notification no longer appears in the Windows 11 notification center

Davide Perini perini.davide at dpsoftware.org
Wed Aug 30 14:42:33 UTC 2023


Ok,
thanks for the answer Aleksei,
now it's clear to me, I would say that it is now the Microsoft desired 
behaviour by default.

Another thing I noticed is that the icon on the notitification is now 
"corrupted" even if the icon on the tray icon is correctly shown.

... any idea on this?

Same icons worked perfectly well some "Windows updates" ago...

Non Java apps seems to work well,
is there something we can do to workaround this?

Thanks
Davide

Il 30/08/2023 15:52, Aleksei Ivanov ha scritto:
> Hi Davide,
>
> I ran your test again on Windows 10 and 11, and the results are 
> different. In both cases, I used a recent build of Java 22, which is 
> the mainline.
>
> On Windows 10, the notification goes to the Action Center, it stays 
> there until I explicitly dismiss it.
>
> On Windows 11, the notification doesn't go to the Notification Center, 
> it's completely gone as soon as the toast disappears.
>
> This coincides with what you stated in the bug description.
>
>
> I added this analysis to the bug. As I explained there, Java uses 
> Windows Shell API to display a notification. This API is available 
> since Windows 95, and it  provides no control whether the notification 
> disappears or goes to the Action Center; after all, the Action or 
> Notification Center didn't exist until Windows 8.
>
> So, the status Cannot Reproduce seems wrong. At the same time, there's 
> nothing we can do about it.
>
>
> The “Display the Notification” [1] section explains how to display a 
> notification, this is what Java does.
>
> Does the Windows SDK sample, NotificationIcon Sample [2], behave the 
> same way?
>



More information about the client-libs-dev mailing list