Creating a service to send notifications
In this recipe, you will create the application server which will provide push notifications for a surf updates phone app. The service will allow users to register for notifications and periodically send updates which will update the phone applications start tile. The application start tile has three components which can be edited: background, title, and count. We will be editing the title and count. We will set the background statically.
Getting ready
We will use a WCF service project for the application server. Create a project named SurfTileNotifications.Service
using the WCF Service Library project template.
How to do it...
The WCF service will have two service methods, namely, GetIslandInfo
and RegisterForNotifications
.
Note
We will be using the Surf Observations RSS feed from the National Weather Service website,http://www.prh.noaa.gov/hnl/xml/Oahu.OMR.HFO.xml, for live surf updates.
The WCF service will read this data feed, parse it, and pass it to...