Generate notification in Windows Sidebar for specific user?
I am using Redis PubSub to create a desktop Chat and would like to generate a Windows Sidebar notification for a user when they receive a message. Searching the internet soon found the following code here (http://portal.tdevrocks.com.br/2015/12/01/tutorial-notificacoes-no-windows-10-com-delphi-10-seattle/)
var
Notificacao : TNotification;
begin
Notificacao := NotificationCenter1.CreateNotification;
try
Notificacao.Name := 'Nome Notificacao';
Notificacao.Title := 'Título da Notificação';
Notificacao.AlertBody := 'Corpo da Notificação';
NotificationCenter1.PresentNotification(Notificacao);
finally
Notificacao.Free;
end;
end;
It works, generates a notification, but the problem is that the notification also appears to the user who he sent the message. Is it possible to notify only the received user? If so can you give me a direction of how to do it?
1