How to let a toast notification stay in Windows 10 Action Center with Delphi
You will find the answer here:powershell script creates Windows 10 notification and it disappears after popup
You must register your application for "Show notifications in action center""HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\$prodName" -Name "ShowInActionCenter" -Type Dword -Value "1"
To get the $prodName use:
function TNotificationsForm.getRegisterToastMessageKey : String;const AppId = 'Embarcadero.DesktopToasts.';begin result := AppId + THashBobJenkins.GetHashString(ParamStr(0));end;
Embarcadero hasn't done a good Job here but so you get the Key,or make a copy from unit System.Win.Notification and change it to your needs.