• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Techdays 2012 - Windows Phone Push notifications & Life tiles
 

Techdays 2012 - Windows Phone Push notifications & Life tiles

on

  • 348 views

Developer presentation on implementing push notifications and life tiles to your Windows Phone applications

Developer presentation on implementing push notifications and life tiles to your Windows Phone applications

Statistics

Views

Total Views
348
Views on SlideShare
348
Embed Views
0

Actions

Likes
0
Downloads
12
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Techdays 2012 - Windows Phone Push notifications & Life tiles Techdays 2012 - Windows Phone Push notifications & Life tiles Presentation Transcript

    • Push notifications, live tiles and background agents for Windows Phone 7 Geert van der Cruijsen Consultant – Avanade @geertvdc http://vdcruijsen.net
    • Tile Toast Raw
    • Request push URI Push client/server negotiation Register URI at App service Push message Push message
    • Weather Games Sports Messaging News Utilities
    • Ask for user permission Register Phone with Push Service Register Event Handlers Handle optional in app notifications
    • Demo
    • Register Phone Update Phone URI Send Notifications Handle return codes
    • Demo
    • Pinning tiles ShellTileUpdate private void CreateTileSchedule() { schedule = new ShellTileSchedule(); schedule.Interval = UpdateInterval.EveryDay; schedule.MaxUpdateCount = 7; schedule.Recurrence = UpdateRecurrence.Interval; schedule.RemoteImageUri = new Uri(@"http://www.server.com/image.png"); schedule.Start(); }
    • Demo
    • Tile notifications <wp:Notification xmlns:wp= WPNotification > <wp:TileId= /SessionPage.xaml?id=0 > <wp:BackgroundImage> </wp:BackgroundImage> <wp:Count> </wp:Count> <wp:Title> </wp:Title> <wp:BackBackgroundImage> </wp:BackBackgroundImage> <wp:BackContent> </wp:BackContent> <wp:BackTitle> </wp:BackTitle> </wp:Tile> </wp:Notification>
    • Toast notifications <wp:Notification xmlns:wp= WPNotification > <wp:Toast> <wp:Text1> </wp:Text1> <wp:Text2> </wp:Text2> <wp:Param> </wp:Param> </wp:Toast> </wp:Notification>
    • User Opt-in Check device capabilities <Capability Name= ID_CAP_PUSH_NOTIFICATION /> <Capability Name= ID_CAP_IDENTITY_DEVICE /> Encrypt channel URI Tiles max 80kb and 15 seconds
    • Power management MPNS http response codes
    • PeriodicTask Recurring task on regular interval Max every 30 minutes Maximum of 6 background agents per device ResourceIntensiveTask Single task that can run for a longer time when specific requirements are met
    • PeriodicTask Unsupported APIs UI Camera Memory restrictions 6 MB / 15 MB Reschedule every 2 weeks Unscheduled after 2 consecutive crashes
    • PeriodicTask Typical APIs GeoCoordinateWatcher HttpWebRequest Mutex ShellToast ShellTile
    • ResourceIntensiveTask Heavy requirements Max duration of 10 minutes External power required Non cellular internet connection required Battery power needs to be 90% or higher Screen needs to be locked
    • Demo
    • Push Notification Helper Library Azure toolkit Windows Phone App hub
    • Start building Windows Phone apps! Include Push notifications and/or live tiles!
    • Q&A