SlideShare a Scribd company logo
1 of 25
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

More Related Content

Similar to Techdays 2012 - Windows Phone Push notifications & Life tiles

7 client-state manipulation
7   client-state manipulation7   client-state manipulation
7 client-state manipulation
drewz lin
 
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...
Frédéric Harper
 
Introducing the WSO2 Complex Event Processor
Introducing the WSO2 Complex Event ProcessorIntroducing the WSO2 Complex Event Processor
Introducing the WSO2 Complex Event Processor
WSO2
 

Similar to Techdays 2012 - Windows Phone Push notifications & Life tiles (20)

WP8.1 Tiles and Notifications
WP8.1 Tiles and NotificationsWP8.1 Tiles and Notifications
WP8.1 Tiles and Notifications
 
Simple callcenter platform with PHP
Simple callcenter platform with PHPSimple callcenter platform with PHP
Simple callcenter platform with PHP
 
1. device onboarding
1. device onboarding1. device onboarding
1. device onboarding
 
7 client-state manipulation
7   client-state manipulation7   client-state manipulation
7 client-state manipulation
 
learn you some erlang - chap13 to chap14
learn you some erlang - chap13 to chap14learn you some erlang - chap13 to chap14
learn you some erlang - chap13 to chap14
 
14 tiles, notifications, and action center
14   tiles, notifications, and action center14   tiles, notifications, and action center
14 tiles, notifications, and action center
 
Delivering Millions of Push Notifications in Minutes
Delivering Millions of Push Notifications in MinutesDelivering Millions of Push Notifications in Minutes
Delivering Millions of Push Notifications in Minutes
 
Designing and developing a Windows Phone 7 Silverlight Application End-to-End...
Designing and developing a Windows Phone 7 Silverlight Application End-to-End...Designing and developing a Windows Phone 7 Silverlight Application End-to-End...
Designing and developing a Windows Phone 7 Silverlight Application End-to-End...
 
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...
 
Networking lab
Networking labNetworking lab
Networking lab
 
1. device onboarding pdf
1. device onboarding pdf1. device onboarding pdf
1. device onboarding pdf
 
Build resource server &amp; client for OCF Cloud (2018.8.30)
Build resource server &amp; client for OCF Cloud (2018.8.30)Build resource server &amp; client for OCF Cloud (2018.8.30)
Build resource server &amp; client for OCF Cloud (2018.8.30)
 
FOSS STHLM Android Cloud to Device Messaging
FOSS STHLM Android Cloud to Device MessagingFOSS STHLM Android Cloud to Device Messaging
FOSS STHLM Android Cloud to Device Messaging
 
Introducing the WSO2 Complex Event Processor
Introducing the WSO2 Complex Event ProcessorIntroducing the WSO2 Complex Event Processor
Introducing the WSO2 Complex Event Processor
 
WP7 & Azure
WP7 & AzureWP7 & Azure
WP7 & Azure
 
Monitoring with Syslog and EventMachine
Monitoring with Syslog and EventMachineMonitoring with Syslog and EventMachine
Monitoring with Syslog and EventMachine
 
GCM aperitivo Android
GCM aperitivo AndroidGCM aperitivo Android
GCM aperitivo Android
 
Creating an Uber Clone - Part XIII - Transcript.pdf
Creating an Uber Clone - Part XIII - Transcript.pdfCreating an Uber Clone - Part XIII - Transcript.pdf
Creating an Uber Clone - Part XIII - Transcript.pdf
 
Windows Azure Mobile Services
Windows Azure Mobile ServicesWindows Azure Mobile Services
Windows Azure Mobile Services
 
Arduino and the real time web
Arduino and the real time webArduino and the real time web
Arduino and the real time web
 

More from Geert van der Cruijsen

More from Geert van der Cruijsen (20)

Chaos Engineering - Geert van der Cruijsen.pdf
Chaos Engineering - Geert van der Cruijsen.pdfChaos Engineering - Geert van der Cruijsen.pdf
Chaos Engineering - Geert van der Cruijsen.pdf
 
Better Architecture without Architects.pdf
Better Architecture without Architects.pdfBetter Architecture without Architects.pdf
Better Architecture without Architects.pdf
 
The art and joy of testing in production
The art and joy of testing in productionThe art and joy of testing in production
The art and joy of testing in production
 
Techdays Helsinki - Creating the distributed apps of the future using dapr - ...
Techdays Helsinki - Creating the distributed apps of the future using dapr - ...Techdays Helsinki - Creating the distributed apps of the future using dapr - ...
Techdays Helsinki - Creating the distributed apps of the future using dapr - ...
 
Cloudbrew 2019 observability driven development
Cloudbrew 2019   observability driven developmentCloudbrew 2019   observability driven development
Cloudbrew 2019 observability driven development
 
Cloudbrew 2019 - running serverless applications in azure in production
Cloudbrew 2019 - running serverless applications in azure in productionCloudbrew 2019 - running serverless applications in azure in production
Cloudbrew 2019 - running serverless applications in azure in production
 
building resilient and production ready serverless solutions on azure
building resilient and production ready serverless solutions on azurebuilding resilient and production ready serverless solutions on azure
building resilient and production ready serverless solutions on azure
 
Observability driven development
Observability driven developmentObservability driven development
Observability driven development
 
Chaos engineering - The art of breaking stuff in production on purpose
Chaos engineering - The art of breaking stuff in production on purposeChaos engineering - The art of breaking stuff in production on purpose
Chaos engineering - The art of breaking stuff in production on purpose
 
There is a bot for that - building chat bots from idea to production
There is a bot for that - building chat bots from idea to productionThere is a bot for that - building chat bots from idea to production
There is a bot for that - building chat bots from idea to production
 
Security as code - DevOpsDays Amsterdam 2018
Security as code - DevOpsDays Amsterdam 2018Security as code - DevOpsDays Amsterdam 2018
Security as code - DevOpsDays Amsterdam 2018
 
NoOps for noobs; why i think Devs do not need Ops
NoOps for noobs; why i think Devs do not need OpsNoOps for noobs; why i think Devs do not need Ops
NoOps for noobs; why i think Devs do not need Ops
 
Making AI easy with Azure Cognitive services
Making AI easy with Azure Cognitive servicesMaking AI easy with Azure Cognitive services
Making AI easy with Azure Cognitive services
 
Visual Studio Mobile Center: A story about mobile DevOps
Visual Studio Mobile Center: A story about mobile DevOpsVisual Studio Mobile Center: A story about mobile DevOps
Visual Studio Mobile Center: A story about mobile DevOps
 
Techdays 2017: Give your Xamarin Apps eyes, ears and a brain with Cognitive S...
Techdays 2017: Give your Xamarin Apps eyes, ears and a brain with Cognitive S...Techdays 2017: Give your Xamarin Apps eyes, ears and a brain with Cognitive S...
Techdays 2017: Give your Xamarin Apps eyes, ears and a brain with Cognitive S...
 
Build 2017 recap (Mobile)
Build 2017 recap (Mobile)Build 2017 recap (Mobile)
Build 2017 recap (Mobile)
 
Continuous delivery of Sitecore on Azure using VSTS at a bank from 1737
Continuous delivery of Sitecore on Azure using VSTS at a bank from 1737Continuous delivery of Sitecore on Azure using VSTS at a bank from 1737
Continuous delivery of Sitecore on Azure using VSTS at a bank from 1737
 
WP8 new dev features
WP8 new dev featuresWP8 new dev features
WP8 new dev features
 
Bedrijf zoekt app - apps ontwikkelen voor windows 8
Bedrijf zoekt app - apps ontwikkelen voor windows 8Bedrijf zoekt app - apps ontwikkelen voor windows 8
Bedrijf zoekt app - apps ontwikkelen voor windows 8
 
Avanade Inspire 2013 - Enterprise Mobility
Avanade Inspire 2013  - Enterprise MobilityAvanade Inspire 2013  - Enterprise Mobility
Avanade Inspire 2013 - Enterprise Mobility
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

Techdays 2012 - Windows Phone Push notifications & Life tiles