Sending Push Notifications using the ASP .NET MVC 3 Portal

1. Switch to the Web browser and log into the Web application using the following credentials:
User Name: admin
Password: Passw0rd! (with a zero)
2. Once logged in, additional menu options will be shown to manage blobs and to send push notifications.
6c34ad9f-687e-47a5-8875-459e8ced3854.png
3. Click the Push Notifications menu option. Here you will see the channel that you requested using the sample Metro app which registered with your Web Role.
31f3e508-b6a7-4af9-9071-400cd67e02e2.png
4. You can now send your first toast notification to this channel. Select Toast in the first drop-down list and then select the ToastImageAndText01 template.
5. Configure the template column with your Square WindowsAzureLogo.png and type some text into Text Field 1 as per below:
5235bb67-f0b2-47fd-a27a-a62e50dbc179.png
6. Press Send and observe that the Web portal indicates that the message was successfully delivered to WNS and the Toast notification arrives to the Client application.
154223e7-27a7-48f1-a7e8-8731ff40be9e.png

Now that we have seen how to send a Toast we will send a Tile notification. Select Tile in the first drop-down and then select the TileWidePeekImage01 template.

1. Configure the template column with:
Your wide logo WindowsAzureWideLogo.png
Custom text to be displayed in Text Field 1 and Text Field 2
Press Send
f35c9fed-413e-42b2-88df-09d224b471cf.png
2. Return to Start by pressing the Windows key ( ) and observe that your Tile notification has now been delivered and is being displayed.
2ec29cc3-e8c3-4da8-a651-e583de280ad5.png
3. After a brief moment, you will see the text you provided peek into the Tile.
d95a28db-4cd2-4fc6-9f50-0e20e7f75ee9.png

Now that we have seen how to send a Tile we will send a Badge notification. Select Badge in the first drop-down list and then select the Glyph template.

1. In the template column select the NewMessage option and press Send.
71bdd82a-728a-4215-a037-01928e9233ec.png
2. Return to Start by pressing the Windows key ( ) and observe that your Tile has now had the Badge updated to see the NewMessage Glyph type:
863aa119-10a2-4d0f-97aa-1138a9aad0be.png
Note: This concludes the overview of how to send Toast, Tile and Badge notifications using the Windows Azure Toolkit for Windows 8. As an exercise, it is recommended to spend some time exploring the rich set of templates available to each of the different notification types.

Last edited Sep 27, 2011 at 3:57 PM by nharris, version 15

Comments

No comments yet.