【问题标题】:Get the title of the toast when the toast notification is removed from action center in UWP从 UWP 中的操作中心删除 toast 通知时获取 toast 的标题
【发布时间】:2017-01-24 18:03:15
【问题描述】:

我有一个应用程序,它能够发送三种不同类型的本地 toast,使用 notifier.Show(toast) 方法。我需要跟踪通知标题和通知从操作中心删除时的当前时间。我已将我的后台任务注册为“ToastNotificationHistoryChangedTrigger(application_Id)”。从操作中心删除通知时会触发我的后台任务,但后台任务中没有删除通知的详细信息。所以,我无法获取删除的 toast 的标题。谁能帮我解决这个问题?

【问题讨论】:

    标签: windows-store-apps win-universal-app toast


    【解决方案1】:

    Notification Listener Documentation应该可以得到被移除的通知详细信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-09-27
      • 2018-04-21
      • 1970-01-01
      • 2017-06-02
      • 2016-09-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多