UWP Push notifications in sleep mode
<p>I used toast notification in my UWP app. The received notifications are in Raw format, so I parsed datas and I show a toast notification to alert user. For that I created a BackgroundTask to handle push notification and show the toast with this code:</p>

<pre><code>var notifier = ToastNotificationManager.CreateToastNotifier();
notifier.Show(toast);
</code></pre>

<p>My implementation works well in all case except when the phone is in sleep mode. If the screen is lock but on, it works but when the screen is off the toast is not displayed.</p>

<p>I have no error because this issue does not appear when I launch app debugging.</p>

<p>Thanks for help</p>