windows phone code camp montreal - push notifications and live tiles

10
Mini-Lesson: Push Notifications and Live Tiles Frédéric Harper Developer Evangelist @ Microsoft Canada @fharper | outofcomfortzone.net

Upload: frederic-harper

Post on 16-Dec-2014

651 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Windows Phone Code Camp Montreal - Push Notifications and Live Tiles

Mini-Lesson: Push Notifications and Live Tiles

Frédéric HarperDeveloper Evangelist @ Microsoft Canada

@fharper | outofcomfortzone.net

Page 2: Windows Phone Code Camp Montreal - Push Notifications and Live Tiles

Push Notifications and Live Tiles

Push Notifications offer developers a way to send timely information to their applications even when they are not around

+ Windows phone has the unique ability to provide the

end user glanceable access to the information they care most about, via Live Tiles

Page 3: Windows Phone Code Camp Montreal - Push Notifications and Live Tiles

Push Notification UX Components

Toast notifications Tile notifications

Default tile pinned to start Count, Title, Background

Raw notifications

7

Title

Count

Title

Background

Page 4: Windows Phone Code Camp Montreal - Push Notifications and Live Tiles

Push Notification Architecture

HTTP Post to URI with payloadPush URI request/response

Push enabled application

Push client service

1

Push client/server negotiation

2

3

Push URI to Cloud Service 4

5

Push notification to device6

Cloud Service

MPNS

Windows Phone 7

Page 5: Windows Phone Code Camp Montreal - Push Notifications and Live Tiles

Send to WP7 Link Tile Link Toast

AlphaJax Turn Tile Move Toast

Seattle Traffic Map Traffic Tile

Scenarios/Popular Applications

Weather Apps Weather Tile Warning Toast

Chess by Post Turn Tile Move Toast

Beezz Unread Tile Direct Toast

There are hundreds and hundreds of Push apps in Marketplace!

Page 6: Windows Phone Code Camp Montreal - Push Notifications and Live Tiles

Live Tiles – Local Tile API Local tile updates (these are *not* push)

Full control of all properties when your app is in the foreground or background

Calorie counter, sticky notes MultiTile!

Create/Update/Delete Launches directly to page/experience

Application TileLaunches main app experience

Secondary TileLaunches world news page

Secondary TileLaunches local news page

Page 7: Windows Phone Code Camp Montreal - Push Notifications and Live Tiles

Back of tile updates Full control of all properties when your app

is in the foreground or background Content, Title, Background

Flips from front to back at random interval Smart logic to make flips asynchronous

Live Tiles – Local Tile API Continued…

Title

Content

Title

BackgroundContent string is bigger

Page 8: Windows Phone Code Camp Montreal - Push Notifications and Live Tiles

DemoLocal Tile Implementation

Page 9: Windows Phone Code Camp Montreal - Push Notifications and Live Tiles

Questions

9

Frédéric HarperDeveloper Evangelist @ Microsoft Canada

[email protected]@fharper

webnotwar.caoutofcomfortzone.net

Page 10: Windows Phone Code Camp Montreal - Push Notifications and Live Tiles

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.

MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

© 2011 Microsoft Corporation.

All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.