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

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 

Techdays 2012 - Windows Phone Push notifications & Life tiles