Windows toast does not appear when machine wakes from modern standby
Pavan
1
Reputation point
Hi All,
I am working on modern standby machine to wake via voice from sleep. When I heard the sound then Intel drivers wakes the machine and i receive an callback in my app to show toast notification.
It works for the first time but from second time onward Toast does not appear when machine wakes from sleep.
To show the toast
var toast = new ToastNotification(toastContent.GetXml())
{
Tag = tag
};
if (expirationTime.HasValue)
{
toast.ExpirationTime = expirationTime;
}
toast.SuppressPopup = suppressPopup; //it's always false
if (handleToastDismissed != null)
{
toast.Dismissed += (toast2, args) =>
{
handleToastDismissed.Invoke(toast2, args);
};
}
toastNotifier.Show(toast);
Sign in to answer