Cross Platform Push with AzureJason Farrell
Centare – Chicago, IL
@jfarrell
http://www.jfarrell.net
Who Am I?
Staff Consultant for Centare Chicago
Consultant for 6yrs (Chicago, Michigan, NYC)
Variety of verticals
Specializing in web, client, and mobile
Hockey and Travel enthusiast
Who is Centare?
Assessment
1
Agile TechniquesALMCloud
1
Training
2Coaching
3
TeamsScaleFlexibility
2TurnkeyOff SiteOn Site
3
TeamsExecutivesOrganizations
Modern / Agile Transformation
MilwaukeeChicagoMadison
Deep Platform Leadership
Modern / Agile Software Delivery
Lets talk about why
Push Notification by Platform
Apple Push Notification Service (APNS)
Launch in 2009
Device Token is for security, to identify the device
Payload size may NOT exceed 256 bytes
Shared with OSX (>= Lion)
Service Polling
Service polls a remote service in the background (Twitter)
Google Cloud Messaging
Successor to Google Cloud to Device Messaging (C2DM)
4KB payload limit
ID Based
Microsoft Push Notification Service (MPNS)
Raw allows 1KB for payload size
Windows Notification Service (WNS)
Requires a token
5kb payload size
Full featured
Send Raw, Tile, and Toast
The Tiles
How it works
Push Notification Registration
Send a request for a Push identifierIdentifier received from Notification Service
How it works
Push Service
Mobile Services
A bit about Azure Mobile Services
Cloud based storage
Backed by SQL Azure
Integrated with node.js for Push Notifications
Supports authentication against Twitter, Facebook, Microsoft, and Google
No REST API for notifications
node.js Integration
Full featured API for all push services
Can send badges for iOS, sound file, and additional data if desired
GCM sends a JSON object to the Android device, pull extras (demo)
MPNS has methods for each of the supported notification methods
WNS has a method for every support notification as well (over 50 ways)
Pricing Free and Reserved
Reserved is $0.10/hr per instance
Free is shared, Reserved is dedicated
Free 165MB outbound data per day
5GB free on standard rates
Pay for the database – most subscriptions grant free DB space
~$5/mn for a since DB between 0 and 100MB
http://bit.ly/MobileCalc
Cross Platform Push DemonstrationSignalR, MVC4, Web API, Objective-C, Java, C#, XAML, JavaScript
How the Demo works
Client Devices
Registration API
Azure Mobile Services
Web App
Closing Thoughts
Resources
http://www.parse.com
http://bit.ly/AzureMS
http://bit.ly/windowsphonepush
http://bit.ly/Win8TileList
http://bit.ly/PushReference
http://bit.ly/PushDemoSource - Complete Demo Source code
Questions or Comments
Thank You