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

Calling the hub from scripts

In the previous chapter, we talked about sending push notifications from our scripts using the PNS libraries. There isn't a built-in library for the Notifications Hub, but remember when we were looking at using NPM modules in our scripts? Well, we can pull in a reference to the Azure SDK for a Node NPM package, which is preinstalled in our service, so we don't even need to install it! The SDK is open source and can be found on GitHub at https://github.com/WindowsAzure/azure-sdk-for-node. It can be useful if you are having trouble finding examples of how to do certain things because you can look at the code.

If you remember in the previous chapter, we had to maintain a table of channels, then loop through the table, ...

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