cross platform push with azure jason farrell centare – chicago, il @jfarrell

22
Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell http://www.jfarrell.net

Upload: tessa-dunford

Post on 29-Mar-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

Cross Platform Push with AzureJason Farrell

Centare – Chicago, IL

@jfarrell

http://www.jfarrell.net

Page 2: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

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

Page 3: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

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

Page 4: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

Lets talk about why

Page 5: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

Push Notification by Platform

Page 6: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

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)

Page 7: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

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

Page 8: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

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

Page 9: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

The Tiles

Page 10: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

How it works

Push Notification Registration

Send a request for a Push identifierIdentifier received from Notification Service

Page 11: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

How it works

Push Service

Page 12: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell
Page 13: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

Mobile Services

Page 14: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

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

Page 15: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

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)

Page 16: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

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

Page 17: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

Cross Platform Push DemonstrationSignalR, MVC4, Web API, Objective-C, Java, C#, XAML, JavaScript

Page 18: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

How the Demo works

Client Devices

Registration API

Azure Mobile Services

Web App

Page 19: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

Closing Thoughts

Page 21: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

Questions or Comments

Page 22: Cross Platform Push with Azure Jason Farrell Centare – Chicago, IL @jfarrell

Thank You