超时后,操作中心不会显示 Toast 通知

编程入门 行业动态 更新时间:2024-10-28 13:18:29
本文介绍了超时后,操作中心不会显示 Toast 通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

Windows 10 中的 Toast 通知行为异常.即使用户还没有采取任何行动,它也不会停留在行动中心.此行为适用于自定义通知和通用通知.Toast 通知是使用 Windows 桌面应用程序生成的,而不是使用通用窗口.

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.

推荐答案

如回答这里:

Win32 应用程序需要设置 COM 服务器才能在操作中心保留 Toast:http://blogs.msdn/b/tiles_and_toasts/archive/2015/10/15/quickstart-handling-toast-activations-from-win32-apps-in-windows-10.aspx

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

您可以继续https://github/WindowsNotifications/desktop-toasts查看 C++ 和 C# 中的一些工作示例.

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

这篇关于超时后,操作中心不会显示 Toast 通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-30 04:59:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1390256.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:操作   通知   中心   Toast

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!