使用 ScheduledToastNotification 时 "The specified path is invalid" 错误的原因

Cause of "The specified path is invalid" error when using ScheduledToastNotification

我在尝试显示 ScheduledToastNotification 时收到 "The specified path is invalid" 错误,如果我在我的应用程序中使用 ToastNotification,它会起作用。

System.Exception was unhandled by user code
  HResult=-2147024735
  Message=The specified path is invalid. (Exception from HRESULT: 0x800700A1)
  Source=Windows
  StackTrace:
       at Windows.UI.Notifications.ToastNotifier.AddToSchedule(ScheduledToastNotification scheduledToast)

此时我没有打开任何文件或处理路径,异常肯定发生在启动 ScheduledToastNotification 的行上,我正在使用 Windows 10 通用应用程序平台但无法找到在任何地方提及此错误或问题

错误 "The specified path is invalid" 是由于 Windows 10 构建中的 API 尚未支持 API 调用,Windows 8.1 的文档中提到不支持 ScheduledToastNotification,但是在 Windows10 的 10240 版本中,此 API 调用现在在桌面和移动设备上得到完全支持