Registering for push notifications
Now we will learn how to register for push notifications with the application server we created in the last recipe (Creating a service to send push notifications). In this recipe, we will create a surf updates app for the Hawaiian island of Oahu. The application will provide surf information about the island and allow you to select a specific beach to send hourly surf updates to the application tile.
Getting ready
Create a new project in Visual Studio named SurfTileNotifications
using the Windows Phone Application template for the phone application.
The phone application will display some general information about the surf conditions of the island and then list all the beach surf conditions on the MainPage
of the phone project:
1. First set the
x:Name
attribute on thePhoneApplicationPage
toroot
. Delete theApplicationTitle
TextBlock. Set the text property on thePageTitle TextBlock
toOahu Surf Updates.
2. Next create a
ScrollViewer
with an inner vertical...