O'Reilly logo

Learning Windows Azure Mobile Services for Windows 8 and Windows Phone 8 by Geoff Webber-Cross

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Service scripts

In the TileTapper game, we send out notifications when a new level is created and when a new high score is submitted. We'll see how to send all the notification types (except raw; by all means do this if you need to in your application, but we're not going to discuss it now).

First, we’ll look at a set of scripts which gets all the URIs from the channels table, which have been updated in the last 30 days so we know they are likely to be active and then sends notifications out to the correct PNS services depending on the platform type.

The sendNotifications function gets the channels from the channels table. Then, it loops through them, calling the addToQueue method that queues PNS task functions for each channel. We don't call the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required