SlideShare una empresa de Scribd logo
1 de 25
Descargar para leer sin conexión
Live Tiles and
Push
Notifications
Topics
• End-User Experience
• Tile 101
• Multiple Live Tiles
• Updating a Live Tile from a background process
• Push Notifications




Windows Phone
Consumer Experience
• Windows phone has the unique
  ability to provide the end user
  glanceable access to the information
  they care most about, via Live Tiles
                   +
• Push Notifications offer developers a
  way to send timely information to the
  end user’s device even when the
  application is not running, including
  Tile updates
Windows Phone
Tiles 101
• Shortcuts to apps
• Static or dynamic
• 2 sizes: small & large
     –   Large only for 1st party
         apps
• End-user is in control




Windows Phone
Data Driven Template Model
• A fixed set of data properties
• Each property corresponds to a UI element
• Each UI element has a fixed position on screen
• Not all elements need to be used
• Animations are not extensible




    Background       Title   Count
       Image
  (173 x 173 .png)
Windows Phone
Scenarios/Popular Applications

   Weather Apps            Send to WP7
        Weather Tile            Link Tile
        Warning Toast           Link Toast
   Chess by Post           AlphaJax
      Turn Tile               Turn Tile
      Move Toast              Move Toast
   Beezz                   Seattle Traffic Map
      Unread Tile               Traffic Tile
      Direct Toast




Windows Phone
Primary and Secondary Tiles
• Application Tile                                         Front

     –   Pinned from App List
     –   Properties are set initially in the Application
         Manifest

                                                           Back
• Secondary Tile
     –   New in Windows Phone 7.5!
     –   Created as a result of user input in an
         application



Windows Phone
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

• Multi-Tile!
   – Deep-link to specific application sections
   – Launch directly to page/experience




Windows Phone
Live Tiles – Local Tile API
Continued…
• Back of tile updates
     –   Full control of all properties when your app
         is in the foreground or background
     –   Content, Title, Background

     Content     Content
     string is                                 Background
     bigger
                           Title   Title


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


Windows Phone
Demo


Demo 1: Live Tiles – Local Tile API
Tile Schedule
• Periodically updates the tile image without pushing
  message though
• Updates images only from the web, not from the app local
  store
• Sets up notification channel and binds it to a tile notification
• Few limitations
     –   Image size must be less than 80 KB
     –   Download time must not exceed 60 seconds
     –   Lowest update time resolution is 60 minutes
     –   If the schedule for an indefinite or finite number of updates fails too
         many times, OS will cancel it
• Update recurrence can by Onetime, EveryHour, EveryDay,
  EveryWeek or EveryMonth

Windows Phone
Scheduling Tile Update
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");
        _mySchedule.Start();
    }
}




Windows Phone
Updating Tiles from a
Background Agent
• In Windows Phone OS 7.0, only way of updating Live Tiles
  was from a Tile Schedule or from Notifications
    – Tile Schedule needs to fetch images from a web URI
    – Notifications require you to implement a backend
      service
• To have control of shell tiles when the app is not running
  without using Push Notifications, a good solution is a
  Background Agent
   – Use the ShellTile API to locate and update tiles




Windows Phone
Demo


Demo 2: Updating Tiles from a
Background Agent
Push Notifications
• Server-initiated communication
• Enable key background scenarios
• Preserve battery life and user experience
• Prevent polling for updates




Windows Phone
Push Notification Data Flow

                                2                 URI to the service:
                                    "http://notify.live.com/throttledthirdparty/01.00/AAFRQH        3rd party
            Push enabled                               giiMWNTYrRDXAHQtz-                            service
                                    AgrNpzcDAwAAAAQOMDAwMDAwMDAwMDAwMDA
             applications                                          "
                                                                                                    3
                Notifications
                  service                                                                      HTTP POST the
                                                              4                                  message
                                                                       Send PN
                                                                       Message
1
       Push endpoint is established. URI is
            created for the endpoint.
                                                                                                   Microsoft
                                                                                                     hosted
                                                                                                     server




Windows Phone
Three Kinds of Notifications
• Raw
     –   Notification message content is application-specific
     –   Delivered directly to app only if it is running
• 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
• Tile
     –   Specific XML schema
     –   Never delivered to app
     –   If user has pinned app tile to Start screen, system updates it using
         notification message content

Windows Phone
Push Notifications – New
Features
• Multi-Tile/Back of Tile Support
     –   Multiple weather locations, news categories, sports
         team scores, twitter favorites
     –   Can update all tiles belonging to your application
• No API Change for binding tiles
     –   BindToShellTile now binds you to all tiles
     –   Send Tile ID to service and use new attribute to direct
         update
• Three new elements for back of tile properties


Windows Phone
Toast Notification
• App icon and two text fields
• Time critical and personally relevant
• Users must opt-in via app UI




Windows Phone
Demo


Demo 3: Push Notifications
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

Windows Phone
Security Technical Details
Two levels of trust
Authentication:
–   Phone Client – MS server :
–   TLS + WL Device ID
–   MS Server – 3rd party service:
–   HTTPs (for third-party)
–   Throttling for unauthenticated services
Authorization:
– Token (notification URI) validated with each PUSH
notification

Windows Phone
Summary
• In this session we covered how tiles work, live
  tiles, shell tiles as well as how to support multiple
  tiles from a single application.
• We also covered updating a Live Tile from a
  Background Application as well as via Push
  Notifications




Windows Phone
Q&A
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.

Más contenido relacionado

Destacado

follow-ap DAY 4: HTML5 e jQuery
follow-ap DAY 4: HTML5 e jQueryfollow-ap DAY 4: HTML5 e jQuery
follow-ap DAY 4: HTML5 e jQuery
QIRIS
 

Destacado (16)

DESKTOP AND CLIENT VIRTUALIZATION: NEW WORKSTYLES WITH MICROSOFT VDI
DESKTOP AND CLIENT VIRTUALIZATION: NEW WORKSTYLES WITH MICROSOFT VDIDESKTOP AND CLIENT VIRTUALIZATION: NEW WORKSTYLES WITH MICROSOFT VDI
DESKTOP AND CLIENT VIRTUALIZATION: NEW WORKSTYLES WITH MICROSOFT VDI
 
follow-ap DAY 4: HTML5 e jQuery
follow-ap DAY 4: HTML5 e jQueryfollow-ap DAY 4: HTML5 e jQuery
follow-ap DAY 4: HTML5 e jQuery
 
70-534: ARCHITECTING MICROSOFT AZURE SOLUTIONS
70-534: ARCHITECTING MICROSOFT AZURE SOLUTIONS70-534: ARCHITECTING MICROSOFT AZURE SOLUTIONS
70-534: ARCHITECTING MICROSOFT AZURE SOLUTIONS
 
PREDICT THE FUTURE , MACHINE LEARNING & BIG DATA
PREDICT THE FUTURE , MACHINE LEARNING & BIG DATAPREDICT THE FUTURE , MACHINE LEARNING & BIG DATA
PREDICT THE FUTURE , MACHINE LEARNING & BIG DATA
 
Guida C# By Megahao
Guida C# By MegahaoGuida C# By Megahao
Guida C# By Megahao
 
70-485: ADVANCED OF DEVELOPING WINDOWS STORE APPS USING C#
70-485: ADVANCED OF DEVELOPING WINDOWS STORE APPS USING C#70-485: ADVANCED OF DEVELOPING WINDOWS STORE APPS USING C#
70-485: ADVANCED OF DEVELOPING WINDOWS STORE APPS USING C#
 
ARCHITETTURA DI UN'APPLICAZIONE SCALABILE
ARCHITETTURA DI UN'APPLICAZIONE SCALABILEARCHITETTURA DI UN'APPLICAZIONE SCALABILE
ARCHITETTURA DI UN'APPLICAZIONE SCALABILE
 
INTRO TO XAMARIN
INTRO TO XAMARININTRO TO XAMARIN
INTRO TO XAMARIN
 
HTML e CSS
HTML e CSSHTML e CSS
HTML e CSS
 
MICROSOFT E IL MONDO IOT
MICROSOFT E IL MONDO IOTMICROSOFT E IL MONDO IOT
MICROSOFT E IL MONDO IOT
 
TFS and Scrum - Lessons Learned
TFS and Scrum - Lessons LearnedTFS and Scrum - Lessons Learned
TFS and Scrum - Lessons Learned
 
Dai delegati a LINQ con C#
Dai delegati a LINQ con C#Dai delegati a LINQ con C#
Dai delegati a LINQ con C#
 
Corso pratico di C# - 2013
Corso pratico di C# - 2013Corso pratico di C# - 2013
Corso pratico di C# - 2013
 
C#, imparare a programmare e sopravvivere
C#, imparare a programmare e sopravvivereC#, imparare a programmare e sopravvivere
C#, imparare a programmare e sopravvivere
 
OOP with C#
OOP with C#OOP with C#
OOP with C#
 
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika AldabaLightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
 

Similar a follow-app BOOTCAMP 2 - Windows Phone: Tiles and Notifications

Windows 8 DevUnleashed - Session 3
Windows 8 DevUnleashed - Session 3Windows 8 DevUnleashed - Session 3
Windows 8 DevUnleashed - Session 3
drudolph11
 
Windows Phone Code Camp Montreal - Push Notifications and Live Tiles
Windows Phone Code Camp Montreal - Push Notifications and Live TilesWindows Phone Code Camp Montreal - Push Notifications and Live Tiles
Windows Phone Code Camp Montreal - Push Notifications and Live Tiles
Frédéric Harper
 
Leveraging Zend Framework for Sending Push Notifications
Leveraging Zend Framework for Sending Push NotificationsLeveraging Zend Framework for Sending Push Notifications
Leveraging Zend Framework for Sending Push Notifications
Mike Willbanks
 
Push_notifikacije_na_Azureu[1]
Push_notifikacije_na_Azureu[1]Push_notifikacije_na_Azureu[1]
Push_notifikacije_na_Azureu[1]
Ivan Marković
 
software testing on whatsapp
software testing on whatsappsoftware testing on whatsapp
software testing on whatsapp
nil65
 
Windows Phone 8 - 8 Tiles and Lock Screen Notifications
Windows Phone 8 - 8 Tiles and Lock Screen NotificationsWindows Phone 8 - 8 Tiles and Lock Screen Notifications
Windows Phone 8 - 8 Tiles and Lock Screen Notifications
Oliver Scheer
 

Similar a follow-app BOOTCAMP 2 - Windows Phone: Tiles and Notifications (20)

Live Tiles and Notifications in Windows Phone
Live Tiles and Notifications in Windows PhoneLive Tiles and Notifications in Windows Phone
Live Tiles and Notifications in Windows Phone
 
Windows 8 DevUnleashed - Session 3
Windows 8 DevUnleashed - Session 3Windows 8 DevUnleashed - Session 3
Windows 8 DevUnleashed - Session 3
 
08.Push Notifications
08.Push Notifications 08.Push Notifications
08.Push Notifications
 
Developing windows phone 7 application with silverlight
Developing windows phone 7 application with silverlightDeveloping windows phone 7 application with silverlight
Developing windows phone 7 application with silverlight
 
Windows Phone Code Camp Montreal - Push Notifications and Live Tiles
Windows Phone Code Camp Montreal - Push Notifications and Live TilesWindows Phone Code Camp Montreal - Push Notifications and Live Tiles
Windows Phone Code Camp Montreal - Push Notifications and Live Tiles
 
Azure notification hubs
Azure notification hubsAzure notification hubs
Azure notification hubs
 
Zend Framework Push Notifications
Zend Framework Push NotificationsZend Framework Push Notifications
Zend Framework Push Notifications
 
Developing Interactive Applications Using Windows Live Robots, Activities, an...
Developing Interactive Applications Using Windows Live Robots, Activities, an...Developing Interactive Applications Using Windows Live Robots, Activities, an...
Developing Interactive Applications Using Windows Live Robots, Activities, an...
 
Leveraging Zend Framework for Sending Push Notifications
Leveraging Zend Framework for Sending Push NotificationsLeveraging Zend Framework for Sending Push Notifications
Leveraging Zend Framework for Sending Push Notifications
 
Windows 8 BootCamp
Windows 8 BootCampWindows 8 BootCamp
Windows 8 BootCamp
 
Cross Platform Mobile Push Notifications with Azure Notifications Hub
Cross Platform Mobile Push Notifications with Azure Notifications HubCross Platform Mobile Push Notifications with Azure Notifications Hub
Cross Platform Mobile Push Notifications with Azure Notifications Hub
 
Developing on Windows 8
Developing on Windows 8Developing on Windows 8
Developing on Windows 8
 
Push Notification
Push NotificationPush Notification
Push Notification
 
Push_notifikacije_na_Azureu[1]
Push_notifikacije_na_Azureu[1]Push_notifikacije_na_Azureu[1]
Push_notifikacije_na_Azureu[1]
 
Windows Phone Concept - 7.1 & 8 Preview
Windows Phone Concept - 7.1 & 8 PreviewWindows Phone Concept - 7.1 & 8 Preview
Windows Phone Concept - 7.1 & 8 Preview
 
software testing on whatsapp
software testing on whatsappsoftware testing on whatsapp
software testing on whatsapp
 
ReactNYC: Push Notifications in React Native
ReactNYC: Push Notifications in React NativeReactNYC: Push Notifications in React Native
ReactNYC: Push Notifications in React Native
 
Windows Phone 8 - 8 Tiles and Lock Screen Notifications
Windows Phone 8 - 8 Tiles and Lock Screen NotificationsWindows Phone 8 - 8 Tiles and Lock Screen Notifications
Windows Phone 8 - 8 Tiles and Lock Screen Notifications
 
Windows Phone Application Platform
Windows Phone Application PlatformWindows Phone Application Platform
Windows Phone Application Platform
 
Developing Apps for Windows Phone 8
Developing Apps for Windows Phone 8Developing Apps for Windows Phone 8
Developing Apps for Windows Phone 8
 

Más de QIRIS

[F5 Hit Refresh] Pierpaolo Basile - Accesso alle informazioni con apache lucene
[F5 Hit Refresh] Pierpaolo Basile - Accesso alle informazioni con apache lucene[F5 Hit Refresh] Pierpaolo Basile - Accesso alle informazioni con apache lucene
[F5 Hit Refresh] Pierpaolo Basile - Accesso alle informazioni con apache lucene
QIRIS
 
Francesco Inguscio - Avviare una start-up
Francesco Inguscio - Avviare una start-upFrancesco Inguscio - Avviare una start-up
Francesco Inguscio - Avviare una start-up
QIRIS
 
Francesco Inguscio - Start-up financing from the side of the entrepreneur
Francesco Inguscio - Start-up financing from the side of the entrepreneurFrancesco Inguscio - Start-up financing from the side of the entrepreneur
Francesco Inguscio - Start-up financing from the side of the entrepreneur
QIRIS
 
Monica Maria Crapanzano - Definire business model e business plan
Monica Maria Crapanzano - Definire business model e business planMonica Maria Crapanzano - Definire business model e business plan
Monica Maria Crapanzano - Definire business model e business plan
QIRIS
 
Massimo Aliberti - Dal concept al prototipo al prodotto
Massimo Aliberti - Dal concept al prototipo al prodottoMassimo Aliberti - Dal concept al prototipo al prodotto
Massimo Aliberti - Dal concept al prototipo al prodotto
QIRIS
 
follow-app DAY 4 - Strumenti per la prototipazione
follow-app DAY 4 - Strumenti per la prototipazionefollow-app DAY 4 - Strumenti per la prototipazione
follow-app DAY 4 - Strumenti per la prototipazione
QIRIS
 
follow-app BOOTCAMP 4: iOS
follow-app BOOTCAMP 4: iOSfollow-app BOOTCAMP 4: iOS
follow-app BOOTCAMP 4: iOS
QIRIS
 
follow-app BOOTCAMP 3: Android
follow-app BOOTCAMP 3: Androidfollow-app BOOTCAMP 3: Android
follow-app BOOTCAMP 3: Android
QIRIS
 
follow-app BOOTCAMP 2: Windows phone fast application switching
follow-app BOOTCAMP 2: Windows phone fast application switchingfollow-app BOOTCAMP 2: Windows phone fast application switching
follow-app BOOTCAMP 2: Windows phone fast application switching
QIRIS
 
follow-app BOOTCAMP 2: Introduction to silverlight
follow-app BOOTCAMP 2: Introduction to silverlightfollow-app BOOTCAMP 2: Introduction to silverlight
follow-app BOOTCAMP 2: Introduction to silverlight
QIRIS
 
follow-app BOOTCAMP 2: Building windows phone applications with visual studio...
follow-app BOOTCAMP 2: Building windows phone applications with visual studio...follow-app BOOTCAMP 2: Building windows phone applications with visual studio...
follow-app BOOTCAMP 2: Building windows phone applications with visual studio...
QIRIS
 
follow-app: BOOTCAMP 3 - Introduzione al GTUG
follow-app: BOOTCAMP 3 - Introduzione al GTUGfollow-app: BOOTCAMP 3 - Introduzione al GTUG
follow-app: BOOTCAMP 3 - Introduzione al GTUG
QIRIS
 
follow-app DAY 4: Dati, segreti e tecniche per App di successo
follow-app DAY 4: Dati, segreti e tecniche per App di successofollow-app DAY 4: Dati, segreti e tecniche per App di successo
follow-app DAY 4: Dati, segreti e tecniche per App di successo
QIRIS
 
follow-app DAY 3: Marketing & Sales
follow-app DAY 3: Marketing & Salesfollow-app DAY 3: Marketing & Sales
follow-app DAY 3: Marketing & Sales
QIRIS
 

Más de QIRIS (20)

[F5 Hit Refresh] Pierpaolo Basile - Accesso alle informazioni con apache lucene
[F5 Hit Refresh] Pierpaolo Basile - Accesso alle informazioni con apache lucene[F5 Hit Refresh] Pierpaolo Basile - Accesso alle informazioni con apache lucene
[F5 Hit Refresh] Pierpaolo Basile - Accesso alle informazioni con apache lucene
 
Francesco Inguscio - Avviare una start-up
Francesco Inguscio - Avviare una start-upFrancesco Inguscio - Avviare una start-up
Francesco Inguscio - Avviare una start-up
 
Francesco Inguscio - Start-up financing from the side of the entrepreneur
Francesco Inguscio - Start-up financing from the side of the entrepreneurFrancesco Inguscio - Start-up financing from the side of the entrepreneur
Francesco Inguscio - Start-up financing from the side of the entrepreneur
 
Monica Maria Crapanzano - Definire business model e business plan
Monica Maria Crapanzano - Definire business model e business planMonica Maria Crapanzano - Definire business model e business plan
Monica Maria Crapanzano - Definire business model e business plan
 
Massimo Aliberti - Dal concept al prototipo al prodotto
Massimo Aliberti - Dal concept al prototipo al prodottoMassimo Aliberti - Dal concept al prototipo al prodotto
Massimo Aliberti - Dal concept al prototipo al prodotto
 
follow-app DAY 4 - Strumenti per la prototipazione
follow-app DAY 4 - Strumenti per la prototipazionefollow-app DAY 4 - Strumenti per la prototipazione
follow-app DAY 4 - Strumenti per la prototipazione
 
follow-app BOOTCAMP 4: iOS
follow-app BOOTCAMP 4: iOSfollow-app BOOTCAMP 4: iOS
follow-app BOOTCAMP 4: iOS
 
follow-app BOOTCAMP 3: Android
follow-app BOOTCAMP 3: Androidfollow-app BOOTCAMP 3: Android
follow-app BOOTCAMP 3: Android
 
follow-app BOOTCAMP 2: Windows phone fast application switching
follow-app BOOTCAMP 2: Windows phone fast application switchingfollow-app BOOTCAMP 2: Windows phone fast application switching
follow-app BOOTCAMP 2: Windows phone fast application switching
 
follow-app BOOTCAMP 2: Introduction to silverlight
follow-app BOOTCAMP 2: Introduction to silverlightfollow-app BOOTCAMP 2: Introduction to silverlight
follow-app BOOTCAMP 2: Introduction to silverlight
 
follow-app BOOTCAMP 2: Building windows phone applications with visual studio...
follow-app BOOTCAMP 2: Building windows phone applications with visual studio...follow-app BOOTCAMP 2: Building windows phone applications with visual studio...
follow-app BOOTCAMP 2: Building windows phone applications with visual studio...
 
follow-app: BOOTCAMP 3 - Introduzione al GTUG
follow-app: BOOTCAMP 3 - Introduzione al GTUGfollow-app: BOOTCAMP 3 - Introduzione al GTUG
follow-app: BOOTCAMP 3 - Introduzione al GTUG
 
follow-app DAY 4: Dati, segreti e tecniche per App di successo
follow-app DAY 4: Dati, segreti e tecniche per App di successofollow-app DAY 4: Dati, segreti e tecniche per App di successo
follow-app DAY 4: Dati, segreti e tecniche per App di successo
 
follow-app DAY 2: Dall'idea al mercato
follow-app DAY 2: Dall'idea al mercatofollow-app DAY 2: Dall'idea al mercato
follow-app DAY 2: Dall'idea al mercato
 
follow-app DAY 2: Dal mercato al business
follow-app DAY 2: Dal mercato al businessfollow-app DAY 2: Dal mercato al business
follow-app DAY 2: Dal mercato al business
 
follow-app DAY 3: Marketing & Sales
follow-app DAY 3: Marketing & Salesfollow-app DAY 3: Marketing & Sales
follow-app DAY 3: Marketing & Sales
 
follow-app DAY 2: Risorse utili
follow-app DAY 2: Risorse utilifollow-app DAY 2: Risorse utili
follow-app DAY 2: Risorse utili
 
follow-app DAY 1: Manager e leader
follow-app DAY 1: Manager e leaderfollow-app DAY 1: Manager e leader
follow-app DAY 1: Manager e leader
 
follow-app DAY 1: Facebook IPO
follow-app DAY 1: Facebook IPOfollow-app DAY 1: Facebook IPO
follow-app DAY 1: Facebook IPO
 
follow-app DAY 1: Cosa vuol dire essere imprenditore
follow-app DAY 1: Cosa vuol dire essere imprenditorefollow-app DAY 1: Cosa vuol dire essere imprenditore
follow-app DAY 1: Cosa vuol dire essere imprenditore
 

Último

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Último (20)

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 

follow-app BOOTCAMP 2 - Windows Phone: Tiles and Notifications

  • 2. Topics • End-User Experience • Tile 101 • Multiple Live Tiles • Updating a Live Tile from a background process • Push Notifications Windows Phone
  • 3. Consumer Experience • Windows phone has the unique ability to provide the end user glanceable access to the information they care most about, via Live Tiles + • Push Notifications offer developers a way to send timely information to the end user’s device even when the application is not running, including Tile updates Windows Phone
  • 4. Tiles 101 • Shortcuts to apps • Static or dynamic • 2 sizes: small & large – Large only for 1st party apps • End-user is in control Windows Phone
  • 5. Data Driven Template Model • A fixed set of data properties • Each property corresponds to a UI element • Each UI element has a fixed position on screen • Not all elements need to be used • Animations are not extensible Background Title Count Image (173 x 173 .png) Windows Phone
  • 6. Scenarios/Popular Applications  Weather Apps  Send to WP7  Weather Tile  Link Tile  Warning Toast  Link Toast  Chess by Post  AlphaJax  Turn Tile  Turn Tile  Move Toast  Move Toast  Beezz  Seattle Traffic Map  Unread Tile  Traffic Tile  Direct Toast Windows Phone
  • 7. Primary and Secondary Tiles • Application Tile Front – Pinned from App List – Properties are set initially in the Application Manifest Back • Secondary Tile – New in Windows Phone 7.5! – Created as a result of user input in an application Windows Phone
  • 8. 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 • Multi-Tile! – Deep-link to specific application sections – Launch directly to page/experience Windows Phone
  • 9. Live Tiles – Local Tile API Continued… • Back of tile updates – Full control of all properties when your app is in the foreground or background – Content, Title, Background Content Content string is Background bigger Title Title – Flips from front to back at random interval – Smart logic to make flips asynchronous Windows Phone
  • 10. Demo Demo 1: Live Tiles – Local Tile API
  • 11. Tile Schedule • Periodically updates the tile image without pushing message though • Updates images only from the web, not from the app local store • Sets up notification channel and binds it to a tile notification • Few limitations – Image size must be less than 80 KB – Download time must not exceed 60 seconds – Lowest update time resolution is 60 minutes – If the schedule for an indefinite or finite number of updates fails too many times, OS will cancel it • Update recurrence can by Onetime, EveryHour, EveryDay, EveryWeek or EveryMonth Windows Phone
  • 12. Scheduling Tile Update 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"); _mySchedule.Start(); } } Windows Phone
  • 13. Updating Tiles from a Background Agent • In Windows Phone OS 7.0, only way of updating Live Tiles was from a Tile Schedule or from Notifications – Tile Schedule needs to fetch images from a web URI – Notifications require you to implement a backend service • To have control of shell tiles when the app is not running without using Push Notifications, a good solution is a Background Agent – Use the ShellTile API to locate and update tiles Windows Phone
  • 14. Demo Demo 2: Updating Tiles from a Background Agent
  • 15. Push Notifications • Server-initiated communication • Enable key background scenarios • Preserve battery life and user experience • Prevent polling for updates Windows Phone
  • 16. Push Notification Data Flow 2 URI to the service: "http://notify.live.com/throttledthirdparty/01.00/AAFRQH 3rd party Push enabled giiMWNTYrRDXAHQtz- service AgrNpzcDAwAAAAQOMDAwMDAwMDAwMDAwMDA applications " 3 Notifications service HTTP POST the 4 message Send PN Message 1 Push endpoint is established. URI is created for the endpoint. Microsoft hosted server Windows Phone
  • 17. Three Kinds of Notifications • Raw – Notification message content is application-specific – Delivered directly to app only if it is running • 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 • Tile – Specific XML schema – Never delivered to app – If user has pinned app tile to Start screen, system updates it using notification message content Windows Phone
  • 18. Push Notifications – New Features • Multi-Tile/Back of Tile Support – Multiple weather locations, news categories, sports team scores, twitter favorites – Can update all tiles belonging to your application • No API Change for binding tiles – BindToShellTile now binds you to all tiles – Send Tile ID to service and use new attribute to direct update • Three new elements for back of tile properties Windows Phone
  • 19. Toast Notification • App icon and two text fields • Time critical and personally relevant • Users must opt-in via app UI Windows Phone
  • 20. Demo Demo 3: Push Notifications
  • 21. 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 Windows Phone
  • 22. Security Technical Details Two levels of trust Authentication: – Phone Client – MS server : – TLS + WL Device ID – MS Server – 3rd party service: – HTTPs (for third-party) – Throttling for unauthenticated services Authorization: – Token (notification URI) validated with each PUSH notification Windows Phone
  • 23. Summary • In this session we covered how tiles work, live tiles, shell tiles as well as how to support multiple tiles from a single application. • We also covered updating a Live Tile from a Background Application as well as via Push Notifications Windows Phone
  • 24. Q&A
  • 25. 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.