ToastNotifier.GetScheduledToastNotifications () throws "Item not found" (Exception from HRESULT: 0x80070490)

I noticed in my telemetry data that the following code sometimes raises the exception "System.Exception: Element not found. (Exception from HRESULT: 0x80070490)"

var notifier = ToastNotificationManager.CreateToastNotifier();
var notifications = notifier.GetScheduledToastNotifications();

The code runs in the Windows Phone 8.1 (WinPRT) application in the background thread, and an exception is rarely selected.

Any ideas that might be causing this or additional information that I can provide?

+4
source share
2 answers

I had the same problem.

It took a lot of time, but this is a very simple solution:

" , CreateToastNotifier()"

(Windows 10: )

+4

, , , .

0

All Articles