Toast Notifications does not appear in Action Center after time out

旧街凉风 提交于 2020-02-25 13:44:52

问题


Toast notification in Windows 10 is behaving strange. It does not stay in the action center even if user has not taken any actions yet. This behavior is with custom notification and generic both. Toast notification is generated using a Windows desktop application not using a universal window.


回答1:


As answered here :

Win32 apps need to set up a COM server in order to have toasts persisted in Action Center: http://blogs.msdn.com/b/tiles_and_toasts/archive/2015/10/15/quickstart-handling-toast-activations-from-win32-apps-in-windows-10.aspx

You can go on https://github.com/WindowsNotifications/desktop-toasts to view some working samples in C++ and C#.



来源:https://stackoverflow.com/questions/36165102/toast-notifications-does-not-appear-in-action-center-after-time-out

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!