Presentation is loading. Please wait.

Presentation is loading. Please wait.

ONLINE CONFERENCE DESIGN.BUILD.DELIVE R with WINDOWS PHONE THURSDAY 24 MARCH 2011.

Similar presentations


Presentation on theme: "ONLINE CONFERENCE DESIGN.BUILD.DELIVE R with WINDOWS PHONE THURSDAY 24 MARCH 2011."— Presentation transcript:

1 ONLINE CONFERENCE DESIGN.BUILD.DELIVE R with WINDOWS PHONE THURSDAY 24 MARCH 2011

2 Andy Wigley APPA Mundi Microsoft Windows Phone Development MVP http://mobileworld.appamundi.com/blogs/andywigley/rss.aspx andy.wigley@appamundi.com Push Notification Services

3 Server-initiated Communication Push Notifications Your web service sends messages to phones where your push notification-enabled app is installed Server-initiated so app does not have to poll server Battery friendly Provide alerts in the app, toast popup alerts or live tile updates Provide a real-time data feed capability to your app Enhance user experience

4 Live Tiles Shortcuts to apps Static or dynamic 2 sizes: small & large “Pin to Start” 4

5 Notification Toasts 5

6 Raw Notifications Notification message content is application- specific Delivered directly to app only if it is running How you use the message content is application-specific

7 Three Kinds of Notifications Tile –Specific XML schema –Never delivered to app –If user has pinned app tile to Start screen, system updates it using notification message content Toast –Specific XML schema –Content delivered to app if it is running –If app is not running, system displays Toast popup using notification message content Raw –Notification message content is application-specific –Delivered directly to app only if it is running 7

8 Push Notification Data Flow 8 URI to the service: "http://notify.live.com/throttledthirdparty/01.00/AAF RQHgiiMWNTYrRDXAHQtz- AgrNpzcDAwAAAAQOMDAwMDAwMDAwMDAwMDA" Push enabled application Notifications service HTTP POST the message Push endpoint is established. URI is created for the endpoint. 1 2 3 3 rd party service Microsoft hosted server Send PN Message 4

9 Raw Message Content Message Content is application-specific – only gets delivered to running app For example use XML to format data 9

10 Toast Message Content 10 string toastMessage = " " + " ";  Used by system to display Toast message if app not running  ShellToastNotificationReceived event fires if app is running  and values in event args as Dictionary

11 Tile Message Content 11 string tileMessage = " " + " " + " ";  Never delivered to app ,, and are in a string format  Maximum allowed size of the tile image referenced in is 80 KB, with a maximum download time of 1 minute

12 Server Side Helper Recipe

13 13

14 Response Custom Headers Response Code: HTTP status code (200 OK) Notification Status – Notification received by the Push Notification Service – For example: “X-NotificationStatus:Received” DeviceConnectionStatus – The connection status of the device – //For example: X-DeviceConnectionStatus:Connected SubscriptionStatus – The subscription status – //For example: X-SubscriptionStatus:Active More information – http://msdn.microsoft.com/en- us/library/ff402545(v=VS.92).aspx http://msdn.microsoft.com/en- us/library/ff402545(v=VS.92).aspx

15 Tile Schedule Periodically updates the tile image without requiring a Push Notification message Updates images only from the web, not from the app local store Few limitations – Image size must be less than 80 KB – Download time must not exceed 60 seconds – Lowest update time resolution is up to 60 minutes 15

16 Scheduling Tile Update 16 public partial class MainPage : PhoneApplicationPage { private ShellTileSchedule _mySchedule; public MainPage() { InitializeComponent(); ScheduleTile(); } private void ScheduleTile() { _mySchedule = new ShellTileSchedule(); _mySchedule.Recurrence = UpdateRecurrence.Onetime; _mySchedule.StartTime = DateTime.Now; _mySchedule.RemoteImageUri = new Uri("http://cdn3.afterdawn.fi/news/small/windows-phone-7-series.png");http://cdn3.afterdawn.fi/news/small/windows-phone-7-series.png _mySchedule.Start(); }

17  Thank You for attending today’s Tech.Days Online Conference.  Today’s Online Conference will be recorded. It will be made available on-demand very soon.  Your Feedback Matters! Please complete the online evaluation form which will be emailed to you.

18 © 2008 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. 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. ONLINE CONFERENCE


Download ppt "ONLINE CONFERENCE DESIGN.BUILD.DELIVE R with WINDOWS PHONE THURSDAY 24 MARCH 2011."

Similar presentations


Ads by Google