Push Notifications without Azure service?

♀尐吖头ヾ 提交于 2019-12-06 06:17:23

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

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).

Basic workflow:

  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.

A pretty good tutorial:

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

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

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