在设备附加时显示通知并导航到网页 [英] Show a notification while device attaching and navigate to a web page

查看:116
本文介绍了在设备附加时显示通知并导航到网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我正在开发Windows 10上的功能实现,如下所示:


  1. 当我们的设备刚刚通过USB或BT连接到主机时,主机会在右下角弹出一个Toast消息,这表明有设备的软件。
  2. 当用户点击Toast消息时,它将启动浏览器并将用户重定向到软件下载页面。
  3. 如果用户未及时点击Toast消息,通知将保留在Action Center中。当用户从操作中心点击它时,它仍然会启动浏览器并将用户重定向到软件下载
    页面。

总而言之,当用户连接我们的设备时,通知并导航用户到软件下载页面。

 

我打算使用的解决方案是创建驱动程序并将驱动程序发布到Windows Update,驱动程序负责显示Toast消息并响应消息的单击。因此,当用户连接我们的设备时,
将从WU下载驱动程序并执行toast消息。该驱动程序是一个

co -installer
,这意味着它是一个DLL。

The solution I intend to use is create a driver and publish the driver to Windows Update, the driver is responsible for showing the toast message and responding for the click of the message. So that when user connect our device, it will download the driver from WU and execute the toast message. The driver is a co-installer, which means it’s a DLL.

对于toast消息,我打算使用
Shell_NotifyIcon
显示气球,或者
吐司通知
。我知道Shell_NotifyIcon无法将消息放入Action Center,并且很难在驱动程序中使用Toast通知,也许我无法在我的协同安装程序驱动程序中使用Toast通知。

For the toast message I intend to use Shell_NotifyIcon to show a balloon, or the toast notification. I know the Shell_NotifyIcon cannot put the message into Action Center, and it’s difficult to use toast notification in the driver, maybe I can’t use the toast notification in my co-installer driver.

 

我不确定我的是否解决方案是正确的,非常感谢您能为此功能提供更好的解决方案或一些信息。

I’m not sure whether my solution is correct, very appreciate if you can provide a better solution or some information for this feature.

推荐答案

Hi ShenghuaChen,

Hi ShenghuaChen,

感谢您在此发帖。

对于共同安装人员,您的解决方案优于其他解决方案我建议您可以使用COM组件而不是DLL。

You solution is a better than other, for the co-installer I suggest that you can use the COM component instead of the DLL.

围绕吐司通知的术语,弹出式通知,用于允许应用在用户界面的另一个应用中与用户进行通信,或在桌面上。吐司可以来自本地API调用
或来自云。

The Terminology surrounding toast notifications, which are pop-up notifications used to allow the app to communicate with the user whether the user is in another app, on the Start screen, or on the desktop. A toast can originate either from a local API call or from the cloud.

有一个有用的文档,请参阅下面关于吐司通知。

There is a useful document, please see the below about toast notification.

快速入门:发送本地Toast通知和处理激活(Windows
10)

如果你想要开发UWP软件,

If you want to develop UWP software,

这些主题对您有所帮助。               ;                      

these topics would be helpful for you.                                    

最好的问候,

哈特


这篇关于在设备附加时显示通知并导航到网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆