220 likes | 360 Vues
Join Jason Farrell from Centare in this insightful session on cross-platform push notifications with Azure. Learn the intricacies of various push notification services, including Apple's APNS, Google Cloud Messaging, and Microsoft's MPNS. Discover how Azure Mobile Services integrates with Node.js for effective push notifications and authentication. This talk explores impactful use cases, practical implementations, and how organizations can leverage agile techniques in modern software delivery. Gain valuable knowledge to enhance mobile and web notification strategies.
E N D
Cross Platform Push with Azure Jason 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? Modern / Agile Transformation Teams Executives Organizations 3 Coaching 1 2 Assessment Training Modern / Agile Software Delivery Turnkey Off Site On Site 3 Milwaukee Chicago Madison Deep Platform Leadership 1 Agile Techniques ALM Cloud Teams Scale Flexibility 2
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
How it works Push Notification Registration Send a request for a Push identifier Identifier received from Notification Service
How it works Push Service
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 Demonstration SignalR, MVC4, Web API, Objective-C, Java, C#, XAML, JavaScript
How the Demo works Azure Mobile Services Web App Registration API Client Devices
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