没有Azure服务的推送通知? [英] Push Notifications without Azure service?

查看:147
本文介绍了没有Azure服务的推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们尝试使用WP8中的后台服务进行管理,但是即使使用位置跟踪,它也有很多限制。因此,我们选择了推送通知作为后台服务

We tried hard to manage using background services in WP8, but even with Location Tracking it has lot many limitations. So we chose to go for Push Notifications to work as background service.

我经历了很多有关使用 Windows Azure移动服务进行推送通知的资源,我们有什么办法

I have gone through lots of resources talking about Push Notifications with Windows Azure Mobile Service, is there any way we can use Push Notifications using our own server?

第二,什么是 MPNS (Microsoft推送通知服务)?我的手机是否正在运行某些服务?是免费还是付费?在哪里可以找到所有这些信息。

Secondly, what is exactly MPNS (Microsoft Push Notification Service)? Is it some service running in my mobile? Is it free or paid? Where I can find all these information.

问候

推荐答案

WiredPrairie似乎是错误的。您当然可以在不使用Azure的情况下将推送通知发送到WP设备。

WiredPrairie seems to be mistaken. You can certainly send push notifications to a WP device without using Azure.

MPNS是Microsoft自己的服务,您可以向其中发送Web请求(包含具有以下内容的SOAP信封:订阅的设备推送URL和推送数据),它将推送通知传递到设备(吐司,切片或原始)。它是免费使用。但是,我认为您在一定时间内没有证书(仍然免费)的情况下可能会有一定数量的限制(相当高)。

MPNS is Microsoft's own service that you can send a web request to (containing a SOAP envelope that has the subscribed device push URL and push data) and it delivers the push notification to the device (toast, tile, or raw). It is free to use. However, I believe there is a limitation (pretty high) to the amount of requests you may make in a certain period of time without having a certificate (still free).

基本工作流程:


  1. 在设备上构建对吐司接收有反应的处理程序,检测唯一的设备MPNS URL以及该URL何时更改。

  2. 配置一个具有存储设备URL的终结点的服务器以及您可能需要的任何其他用户信息。

  3. 每当您希望服务器应用程序发送一个吐司,将对SOAP请求的打包包装到MPNS

  4. 观看推送通知到达设备。

  1. Build handlers on the device that react to toast receipt, detects the unique device MPNS URL and when that URL changes.
  2. Configure a server with an endpoint that stores the device URL, with any other user info you might want.
  3. Whenever you want your server application to send a toast, package up a SOAP request to MPNS
  4. Watch the push notification arrive on the device.

一个很好的教程:

http://matthiasshapiro.com/2011/04/18/windows-phone-7-push-notifications-for-beginners-now-with- testing /

甚至还有一个帮助程序库由MSFT提供的服务器应用程序:
http://blogs.windows.com/windows_phone/b/wpdev/archive/2011/01/14/windows-push-notification-server-side-helper-library .aspx

There is even a helper library for your server application provided by MSFT: http://blogs.windows.com/windows_phone/b/wpdev/archive/2011/01/14/windows-push-notification-server-side-helper-library.aspx

这篇关于没有Azure服务的推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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