Windows toast does not appear when machine wakes from modern standby

Pavan 1 Reputation point
2019-12-03T01:18:52.843+00:00

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);
Universal Windows Platform (UWP)
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.