Notification.Show dose not work at all #700

Open
opened 2026-01-29 16:46:16 +00:00 by claunia · 0 comments
Owner

Originally created by @towerbit on GitHub (Sep 24, 2021).

  • Version: 13.5.1
  • Target: .Net 5.0.10 on Win10

Source code:

Console.WriteLine("Step --1");
var options = new ElectronNET.API.Entities.NotificationOptions("Basic Notification", "Short message part")
{
OnClick = ()=>
{
//Electron.Dialog.ShowMessageBoxAsync("Notification clicked");
Console.WriteLine("Step--4");
}
};
Console.WriteLine("Step--2");
Electron.Notification.Show(options);
Console.WriteLine("Step--3");

Console out

stdout: Step--1
Step--2

stdout: Step--3

The notification does not display, and Step--4 neither.

Originally created by @towerbit on GitHub (Sep 24, 2021). <!-- Please search existing issues to avoid creating duplicates. --> <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use latest version before report. --> * **Version**: 13.5.1 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> <!-- What target are you building for? --> * **Target**: .Net 5.0.10 on Win10 Source code: > <!-- Enter your issue details below this comment. --> > <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> > > Console.WriteLine("Step --1"); > var options = new ElectronNET.API.Entities.NotificationOptions("Basic Notification", "Short message part") > { > OnClick = ()=> > { > //Electron.Dialog.ShowMessageBoxAsync("Notification clicked"); > Console.WriteLine("Step--4"); > } > }; > Console.WriteLine("Step--2"); > Electron.Notification.Show(options); > Console.WriteLine("Step--3"); Console out > stdout: Step--1 > Step--2 > > stdout: Step--3 **The notification does not display, and Step--4 neither.**
claunia added the bug label 2026-01-29 16:46:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#700