Hello,
Welcome to our Microsoft Q&A platform!
In UWP, Toast Notification is sent via ToastNotifier
, which will inevitably leave a record in the action center.
But you can try to remove history after notification:
private async void SendNotificationWithoutHistory(ToastNotification toast)
{
toast.Tag = "testTag";
var notifier = ToastNotificationManager.CreateToastNotifier();
notifier.Show(toast);
await Task.Delay(3000);
ToastNotificationManager.History.Remove("testTag");
}
In this code, we first display a notification and then remove it from the action center after 3 seconds.
But currently, there is no API that can only show notifications without keeping records.
Thanks