我可以使用Azure通知中心推送到WPF应用程序吗 [英] Can I use azure notification hub to push to a wpf app

查看:44
本文介绍了我可以使用Azure通知中心推送到WPF应用程序吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种将通知推送到Windows桌面应用程序(更具体地讲是WPF应用程序)的方法,我可以为此使用azure通知中心吗?还是那里还有其他选择?

I am looking for a way to push notifications to a windows desktop app (a WPF app to be more specific) can I use azure notification hub for it? or are there any other alternatives out there?

推荐答案

不能为此目的使用Azure通知中心.核心原因是Azure通知中心无法直接与设备一起使用,而是通过每个平台的平台通知服务进行通信(例如 Google云消息).这些服务都不能与简单的WPF应用程序一起使用.

It is not possible to use Azure Notification Hubs for this purpose. The core reason is that Azure Notification Hubs do not work with devices directly, rather it communicates via the Platform Notification Services for each platform (such as Windows Notification Service, Apple Notification Service, Google Cloud Messaging). And none of these services will work with a simple WPF application.

您必须通过长时间轮询或Web套接字连接来设计自己的WPF推送通知服务,并且可能为此使用Windows Azure Service Bus.但是如何构建这样的服务不受SO问题/答案的限制.

You have to design your own WPF Push Notification service via long polling or Web Sockets connection, and you could probably use Windows Azure Service Bus for that. But how to build such a service, is not subject to a SO question/answer.

这篇关于我可以使用Azure通知中心推送到WPF应用程序吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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