Skip to content
sarni edited this page Feb 24, 2014 · 5 revisions

Mobile Phones Push Services

Every platform for smartphones has its own mechanism for pushing data to the mobile application using dedicated servers. In the following we will see as an example how to use the Windows Phone one.

Windows Phone 7.5

Using the same principle as the connectionless push remote wrapper, we can push data to the Windows Phone Push Service. Which will then be responsible to push the data to the phone. (see this page for more information). The class gsn.http.rest.WPPushDelivery implements the Delivery System interface and define the few specific parts for the windows phone push service. This is mostly generating the correct xml data and retrieving the status of the server from the response. This class is written as a generic notification, but it should be adapted for each specific mobile application.

To register for a Push notification from the phone a POST request has to be sent to the server. The following fragment of C# code initialize the push channel and register it on GSN:

Clone this wiki locally