SlideShare a Scribd company logo
1 of 35
NOKIA WEBINAR

SVILUPPARE UNA LIVE APP
NOTIFICHE, LIVE TILE, LOCK
SCREEN

Dan Ardelean
Nokia Developer Champion
dan@xpresscode.eu Twitter: @danardelean
AGENDA
Cosa sone le Live App
Live Tile
Lock screen
Notifiche
Background agents

Nokia Internal Use Only
LIVE APPS
1.

FONDAMENTALE per le applicazioni Windows Phone

2.

Quello che fa la differenza tra Windows Phone e altri smartphone

3.

Uno dei principali motivi per quale l’utente torna usare la vostra
applicazione

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
LIVE APPS

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
LIVE TILES
•

La porta principale per accedere alla vostra
applicazione

•

Uno spazio dove fornire il massimo delle informazioni
utili all’utente

•

NON è solo un collegamento alla vostra applicazione

•

Accesso veloce alle funzionalità più usate
© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
TILE TEMPLATES AND TILE SIZES
Flip

Iconic

Cycle

6

Nokia Internal Use Only
IMPOSTAZIONI TILE PRINCIPALE
Doppio-click su WMAppManifest.xml

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
DIMENSIONI IMMAGINI

Dimensione Tile

Template Flip e
Cycle

Template Iconic

Small

159 x 159 pixels

159 x 159 pixels

110 x 110 pixels

Medium

336 x 336 pixels

336 x 336 pixels

202 x 202 pixels

Wide

691 x 336 pixels

691 x 336 pixels

N/A

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
FLIP

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
ICONIC

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
CYCLE

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
PIÙ
IMPORTANTE
DELLA
DEMO
DESIGN & FUNZIONALITÀ

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
ME TILE - FLIP

?

OK
•
•
•

Non mi da informazioni
essenziali sulla parte frontale
Devo aspettare che si gira =
LENTA
Non ho più informazioni della
versione piccola

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

X
•
•

INUTILE
Versione IL NARCISISTA

11/12/2013

Nokia Internal Use Only
EMAIL - ICONIC
OK

?

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

OK

11/12/2013

Nokia Internal Use Only
CYCLE - FOTO

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
BISOGNA ESSERE CREATIVI

X
Bing Finance

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

My Stocks Portfolio+

11/12/2013

Nokia Internal Use Only
DEMO TILE
© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
SHELLTILESCHEDULE
•

Aggiornamento immagine di background delle tile usando la proprietà
RemoteImageUri

•

L’immagine deve essere più piccola di 150KB Tempo di download < 45 sec.

•

Risoluzione minima 1 ora

•

Rimossa dopo 3 tentativi consecutivi falliti

•

Ricorrenza Onetime, EveryHour, EveryDay, EveryWeek or EveryMonth

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
DEMO SHELL
TILE
SCHEDULE
© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
LOCKSCREEN
•

La prima cosa che l’utente vede quando
accende il telefono

•

Le applicazioni possono fornire il background
della lockscreen, stato dettagliato o quick status

•

WMAppManifest.xml
<Extensions>
<Extension ExtensionName="LockScreen_Notification_IconCount"
ConsumerID="{111DFF24-AA15-4A96-8006-2BFF8122084F}"
TaskID="_default" />
<Extension ExtensionName="LockScreen_Notification_TextField"
ConsumerID="{111DFF24-AA15-4A96-8006-2BFF8122084F}"
TaskID="_default" />
<Extension ExtensionName="LockScreen_Background"
ConsumerID="{111DFF24-AA15-4A96-8006-2BFF8122084F}"
TaskID="_default" />
</Extensions>
© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
LOCKSCREEN
ICONA:
30 x 30 pixel PNG – bianca e sfondo trasparente
Nome default - LockIcon.png
<DeviceLockImageURI IsRelative="true" IsResource="false">AssetsLockLockIcon.png</DeviceLockImageURI>

Prende le informazioni della tile principale
Non è necessario che la tile principale si trovi nella videata Start
BACKGROUND:
Dalle risorse della app ms-appx:///
Uri imageUri = new Uri("ms-appx:///background1.png", UriKind.RelativeOrAbsolute);
LockScreen.SetImageUri(imageUri);

Da IsolatedStorage, ms-appdata:///local/
Uri imageUri = new Uri("ms-appdata:///local/background2.png",UriKind.RelativeOrAbsolute);
LockScreen.SetImageUri(imageUri);

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
DEMO
LOCKSCREEN
© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
NOTIFICHE PUSH
•

•

•

Raw
•
Protocollo custom
•
Inviato solo se l’applicazione è in esecuzione
Toast
•
Protocollo XML
•
Se l’applicazione non è in esecuzione notifica Toast
Tile
•
Protocollo XML
•
Se la Tile è pinned viene aggiornata
© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
PUSH NOTIFICATION DATA FLOW
2
URI to the service:
Push enabled
applications

Third-party
service

"http://notify.live.com/throttledthirdparty/01.00/AAFRQHgiiMWNTYrRDX
AHQtz-AgrNpzcDAwAAAAQOMDAwMDAwMDAwMDAwMDA"

Notifications
service

3

4
Send PN
Message

HTTP POST
the message

1
Push endpoint is established. URI is
created for the endpoint.
MPNS:
Microsoft
hosted
server
NOTIFICHE HTTP HEADERS
•

TOAST
sendNotificationRequest.ContentType = "text/xml";
sendNotificationRequest.Headers.Add("X-WindowsPhone-Target", "toast");
sendNotificationRequest.Headers.Add("X-NotificationClass", "<batching interval>");

•

TILE
sendNotificationRequest.ContentType = "text/xml";
sendNotificationRequest.Headers.Add("X-WindowsPhone-Target", “token");
sendNotificationRequest.Headers.Add("X-NotificationClass", "<batching interval>");

•

RAW
sendNotificationRequest.ContentType = "text/xml";
sendNotificationRequest.Headers.Add("X-NotificationClass", "<batching interval>");
© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
TOAST SCHEMA
string toastMessage = "<?xml version="1.0" encoding="utf-8"?>" +
"<wp:Notification xmlns:wp="WPNotification">" +
"<wp:Toast>" +
"<wp:Text1>WEATHER ALERT</wp:Text1>" +
"<wp:Text2>Stormy</wp:Text2>" +
"<wp:Param>/page1.xaml?value1=1234<wp:Param>" +
"</wp:Toast>" +
"</wp:Notification>";

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
FLIP TEMPLATE SCHEMA
<?xml version="1.0"?>
<wp:Notification xmlns:wp="WPNotification" Version="2.0">
<wp:Tile Id="[TileId]" Template="FlipTile">
<wp:SmallBackgroundImage Action="Clear">[sm tile img URI]</wp:SmallBackgroundImage>
<wp:WideBackgroundImage Action="Clear">[front of wd tile img URI]</wp:WideBackgroundImage>
<wp:WideBackBackgroundImage Action="Clear">[back of wd tile img URI]</wp:WideBackBackgroundImage>
<wp:WideBackContent Action="Clear">[back of wd tile content text]</wp:WideBackContent>
<wp:BackgroundImage Action="Clear">[front of med tile img URI]</wp:BackgroundImage>
<wp:Count Action="Clear">[count]</wp:Count>
<wp:Title Action="Clear">[title text]</wp:Title>
<wp:BackBackgroundImage Action="Clear">[back of med tile img URI]</wp:BackBackgroundImage>
<wp:BackTitle Action="Clear">[back of tile title text]</wp:BackTitle>
<wp:BackContent Action="Clear">[back of med tile content text]</wp:BackContent>
</wp:Tile>
</wp:Notification>

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
CYCLE TEMPLATE SCHEMA
<?xml version="1.0"?>
<wp:Notification xmlns:wp="WPNotification" Version="2.0">
<wp:Tile Id="[TileId]" Template="CycleTile">
<wp:SmallBackgroundImage Action="Clear">[sm tile img URI]</wp:SmallBackgroundImage>
<wp:CycleImage1 Action="Clear">[photo 1 img URI]</wp:CycleImage1>
<wp:CycleImage2 Action="Clear">[photo 2 img URI]</wp:CycleImage2>
<wp:CycleImage3 Action="Clear">[photo 3 img URI]</wp:CycleImage3>
<wp:CycleImage4 Action="Clear">[photo 4 img URI]</wp:CycleImage4>
<wp:CycleImage5 Action="Clear">[photo 5 img URI]</wp:CycleImage5>
<wp:CycleImage6 Action="Clear">[photo 6 img URI]</wp:CycleImage6>
<wp:CycleImage7 Action="Clear">[photo 7 img URI]</wp:CycleImage7>
<wp:CycleImage8 Action="Clear">[photo 8 img URI]</wp:CycleImage8>
<wp:CycleImage9 Action="Clear">[photo 9 img URI]</wp:CycleImage9>
<wp:Count Action="Clear">[count]</wp:Count>
<wp:Title Action="Clear">[title text]</wp:Title>
</wp:Tile>
</wp:Notification>

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
ICONIC TEMPLATE SCHEMA
<?xml version="1.0"?>
<wp:Notification xmlns:wp="WPNotification" Version="2.0">
<wp:Tile Id="[TileId]" Template="IconicTile">
<wp:SmallIconImage Action="Clear">[sm icon img URI]</wp:SmallIconImage>
<wp:IconImage Action="Clear">[med/wd icon img URI]</wp:IconImage>
<wp:WideContent1 Action="Clear">[wd tile content line 1]</wp:WideContent1>
<wp:WideContent2 Action="Clear">[wd tile content line 2]</wp:WideContent2>
<wp:WideContent3 Action="Clear">[wd tile content line 3]</wp:WideContent3>
<wp:Count Action="Clear">[count]</wp:Count>
<wp:Title Action="Clear">[title text]</wp:Title>
<wp:BackgroundColor Action="Clear">[hex ARGB background color of tile]</wp:BackgroundColor>
</wp:Tile>
</wp:Notification>

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
SAMPLE E APPROFONDIMENTI
Windows Phone 8 JumpStart Module 08: Push Notifications
http://channel9.msdn.com/Series/MVA-Jump-Start/Building-Apps-for-Windows-Phone-8-Jump-Start08-Push-Notifications
http://code.msdn.microsoft.com/Windows-Phone-8-JumpStart-ab6c839a

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
DEMO
NOTIFICHE
PUSH
© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
BACKGROUND TASKS
PeriodicTask
•
•

Eseguito ogni 30 minuti
Massimo 25 secondi

ResourceIntensiveTask
•
•
•
•
•

Il telefono è in carica collegato via WiFi e carica batteria >90%
Il telefono non viene usato
Tempo massimo di esecuzione 10 minuti

Utilizzo memoria <= 6 MB
Cancellato dopo 2 crash consecutivi
© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
ACCESSO CONCORENZIALE
public bool LoadLogFromIsolatedStorageFile()
{
mut.WaitOne(); // Wait until it is safe to enter
try

{
// read the file here
return true;

}
catch {
LogText = "";
return false;
}
finally {
mut.ReleaseMutex(); // Release the Mutex.
}
}

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
BACKGROUND TRANSFERS
Trasferimento da/verso IsolatedStorage
Funzionano quando l’applicazione non è in primo piano
Collegamenti HTTP e HTTPS
Possibilità di monitorare lo stato
Impostare le condizioni usando TransferPreferences
Dimensioni file:
•
•
•

Upload : 5Mb
Download usando dati cellulare: 20Mb
Download usando WiFi: 100Mb

Dimensione massima coda trasferimenti 25

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only
Grazie!
Blog: sviluppomobile.blogspot.com
Email: dan@xpresscode.eu
Twitter: @danardelean

© 2013 Nokia. All rights reserved.
© 2013 Microsoft. All rights reserved.

11/12/2013

Nokia Internal Use Only

More Related Content

Similar to Sviluppare una live app notifiche, live tile, lock screen

La pubblicazione di un'applicazione sullo store
La pubblicazione di un'applicazione sullo storeLa pubblicazione di un'applicazione sullo store
La pubblicazione di un'applicazione sullo storeDan Ardelean
 
Lens app trasformare il telefono in una fotocamera
Lens app trasformare il telefono in una fotocameraLens app trasformare il telefono in una fotocamera
Lens app trasformare il telefono in una fotocameraMicrosoft Mobile Developer
 
LUMIA APP LABS: GAMES DEVELOPMENT USING WINDOWS PHONE 8
LUMIA APP LABS: GAMES DEVELOPMENT USING WINDOWS PHONE 8LUMIA APP LABS: GAMES DEVELOPMENT USING WINDOWS PHONE 8
LUMIA APP LABS: GAMES DEVELOPMENT USING WINDOWS PHONE 8Microsoft Mobile Developer
 
March 2014 Meetup - Nokia X Tech Session
March 2014 Meetup - Nokia X Tech SessionMarch 2014 Meetup - Nokia X Tech Session
March 2014 Meetup - Nokia X Tech SessionBlrDroid
 
Developing For Nokia Asha Devices
Developing For Nokia Asha DevicesDeveloping For Nokia Asha Devices
Developing For Nokia Asha Devicesachipa
 
SmartPhone Design and Delivery
SmartPhone Design and DeliverySmartPhone Design and Delivery
SmartPhone Design and DeliveryJason Diehl
 
Secure your Android app- fight the leaks!
Secure your Android app- fight the leaks!Secure your Android app- fight the leaks!
Secure your Android app- fight the leaks!Eyal Lezmy
 
Droid Pro Launch
Droid Pro LaunchDroid Pro Launch
Droid Pro Launchndknox
 
Lenovo Consumer MSI
Lenovo Consumer MSILenovo Consumer MSI
Lenovo Consumer MSIguest9f2a14
 
Windows Phone 8 More Than An App
Windows Phone 8 More Than An AppWindows Phone 8 More Than An App
Windows Phone 8 More Than An AppNguyên Phạm
 
Windows phone-7- Introduction
Windows phone-7- IntroductionWindows phone-7- Introduction
Windows phone-7- IntroductionChandra Singh
 
iPad Application Features
iPad Application FeaturesiPad Application Features
iPad Application FeaturesEthan Samuel
 
Pangpse training q12011
Pangpse training q12011Pangpse training q12011
Pangpse training q12011Joe Palo Alto
 
Intra mart accel platform 2021winter-en
Intra mart accel platform 2021winter-enIntra mart accel platform 2021winter-en
Intra mart accel platform 2021winter-enNTTDATA INTRAMART
 

Similar to Sviluppare una live app notifiche, live tile, lock screen (20)

La pubblicazione di un'applicazione sullo store
La pubblicazione di un'applicazione sullo storeLa pubblicazione di un'applicazione sullo store
La pubblicazione di un'applicazione sullo store
 
Lens app trasformare il telefono in una fotocamera
Lens app trasformare il telefono in una fotocameraLens app trasformare il telefono in una fotocamera
Lens app trasformare il telefono in una fotocamera
 
LUMIA APP LABS: GAMES DEVELOPMENT USING WINDOWS PHONE 8
LUMIA APP LABS: GAMES DEVELOPMENT USING WINDOWS PHONE 8LUMIA APP LABS: GAMES DEVELOPMENT USING WINDOWS PHONE 8
LUMIA APP LABS: GAMES DEVELOPMENT USING WINDOWS PHONE 8
 
March 2014 Meetup - Nokia X Tech Session
March 2014 Meetup - Nokia X Tech SessionMarch 2014 Meetup - Nokia X Tech Session
March 2014 Meetup - Nokia X Tech Session
 
Developing For Nokia Asha Devices
Developing For Nokia Asha DevicesDeveloping For Nokia Asha Devices
Developing For Nokia Asha Devices
 
SmartPhone Design and Delivery
SmartPhone Design and DeliverySmartPhone Design and Delivery
SmartPhone Design and Delivery
 
Secure your Android app- fight the leaks!
Secure your Android app- fight the leaks!Secure your Android app- fight the leaks!
Secure your Android app- fight the leaks!
 
Droid Pro Launch
Droid Pro LaunchDroid Pro Launch
Droid Pro Launch
 
Lenovo Consumer
Lenovo ConsumerLenovo Consumer
Lenovo Consumer
 
Lenovo Consumer MSI
Lenovo Consumer MSILenovo Consumer MSI
Lenovo Consumer MSI
 
Basic Widget Development
Basic Widget DevelopmentBasic Widget Development
Basic Widget Development
 
Knox Customization Sales Deck
Knox Customization Sales DeckKnox Customization Sales Deck
Knox Customization Sales Deck
 
Windows Phone 8 More Than An App
Windows Phone 8 More Than An AppWindows Phone 8 More Than An App
Windows Phone 8 More Than An App
 
Windows phone-7- Introduction
Windows phone-7- IntroductionWindows phone-7- Introduction
Windows phone-7- Introduction
 
iPad Application Features
iPad Application FeaturesiPad Application Features
iPad Application Features
 
Simposium Berlin 22-04-2008
Simposium Berlin 22-04-2008Simposium Berlin 22-04-2008
Simposium Berlin 22-04-2008
 
Lumia portfolio 2014
Lumia portfolio 2014Lumia portfolio 2014
Lumia portfolio 2014
 
Connettersi al Cloud Azure Mobile Services
Connettersi al Cloud Azure Mobile ServicesConnettersi al Cloud Azure Mobile Services
Connettersi al Cloud Azure Mobile Services
 
Pangpse training q12011
Pangpse training q12011Pangpse training q12011
Pangpse training q12011
 
Intra mart accel platform 2021winter-en
Intra mart accel platform 2021winter-enIntra mart accel platform 2021winter-en
Intra mart accel platform 2021winter-en
 

More from Microsoft Mobile Developer

Intro to Nokia X software platform 2.0 and tools
Intro to Nokia X software platform 2.0 and toolsIntro to Nokia X software platform 2.0 and tools
Intro to Nokia X software platform 2.0 and toolsMicrosoft Mobile Developer
 
Location based services for Nokia X and Nokia Asha using Geo2tag
Location based services for Nokia X and Nokia Asha using Geo2tagLocation based services for Nokia X and Nokia Asha using Geo2tag
Location based services for Nokia X and Nokia Asha using Geo2tagMicrosoft Mobile Developer
 
Lumia App Labs: Lessons learned from 50 windows phone 8 design consultations
Lumia App Labs: Lessons learned from 50 windows phone 8 design consultationsLumia App Labs: Lessons learned from 50 windows phone 8 design consultations
Lumia App Labs: Lessons learned from 50 windows phone 8 design consultationsMicrosoft Mobile Developer
 
Windows Phone 8 speech: parliamo con la nostra app
Windows Phone 8 speech: parliamo con la nostra appWindows Phone 8 speech: parliamo con la nostra app
Windows Phone 8 speech: parliamo con la nostra appMicrosoft Mobile Developer
 
Il pattern mvvm come strutturare al meglio il vostro progetto
Il pattern mvvm come strutturare al meglio il vostro progettoIl pattern mvvm come strutturare al meglio il vostro progetto
Il pattern mvvm come strutturare al meglio il vostro progettoMicrosoft Mobile Developer
 

More from Microsoft Mobile Developer (20)

Intro to Nokia X software platform 2.0 and tools
Intro to Nokia X software platform 2.0 and toolsIntro to Nokia X software platform 2.0 and tools
Intro to Nokia X software platform 2.0 and tools
 
Lumia App Labs: Lumia SensorCore SDK beta
Lumia App Labs: Lumia SensorCore SDK betaLumia App Labs: Lumia SensorCore SDK beta
Lumia App Labs: Lumia SensorCore SDK beta
 
Nokia Asha from idea to app - Imaging
Nokia Asha from idea to app - ImagingNokia Asha from idea to app - Imaging
Nokia Asha from idea to app - Imaging
 
Healthcare apps for Nokia X and Nokia Asha
Healthcare apps for Nokia X and Nokia AshaHealthcare apps for Nokia X and Nokia Asha
Healthcare apps for Nokia X and Nokia Asha
 
Push notifications on Nokia X
Push notifications on Nokia XPush notifications on Nokia X
Push notifications on Nokia X
 
DIY Nokia Asha app usability studies
DIY Nokia Asha app usability studiesDIY Nokia Asha app usability studies
DIY Nokia Asha app usability studies
 
Lessons learned from Nokia X UI reviews
Lessons learned from Nokia X UI reviewsLessons learned from Nokia X UI reviews
Lessons learned from Nokia X UI reviews
 
Location based services for Nokia X and Nokia Asha using Geo2tag
Location based services for Nokia X and Nokia Asha using Geo2tagLocation based services for Nokia X and Nokia Asha using Geo2tag
Location based services for Nokia X and Nokia Asha using Geo2tag
 
HERE Maps for the Nokia X platform
HERE Maps for the Nokia X platformHERE Maps for the Nokia X platform
HERE Maps for the Nokia X platform
 
Nokia In-App Payment - UX considerations
Nokia In-App Payment - UX considerationsNokia In-App Payment - UX considerations
Nokia In-App Payment - UX considerations
 
Introduction to Nokia Asha SDK 1.2 (beta)
Introduction to Nokia Asha SDK 1.2 (beta)Introduction to Nokia Asha SDK 1.2 (beta)
Introduction to Nokia Asha SDK 1.2 (beta)
 
UX considerations when porting to Nokia X
UX considerations when porting to Nokia XUX considerations when porting to Nokia X
UX considerations when porting to Nokia X
 
Kids' games and educational app design
Kids' games and educational app designKids' games and educational app design
Kids' games and educational app design
 
Nokia X: opportunities for developers
Nokia X: opportunities for developersNokia X: opportunities for developers
Nokia X: opportunities for developers
 
Lumia App Labs: Nokia Imaging SDK 1.1
Lumia App Labs: Nokia Imaging SDK 1.1Lumia App Labs: Nokia Imaging SDK 1.1
Lumia App Labs: Nokia Imaging SDK 1.1
 
Intro to Nokia X software platform and tools
Intro to Nokia X software platform and toolsIntro to Nokia X software platform and tools
Intro to Nokia X software platform and tools
 
Lumia App Labs: Lessons learned from 50 windows phone 8 design consultations
Lumia App Labs: Lessons learned from 50 windows phone 8 design consultationsLumia App Labs: Lessons learned from 50 windows phone 8 design consultations
Lumia App Labs: Lessons learned from 50 windows phone 8 design consultations
 
Windows Phone 8 speech: parliamo con la nostra app
Windows Phone 8 speech: parliamo con la nostra appWindows Phone 8 speech: parliamo con la nostra app
Windows Phone 8 speech: parliamo con la nostra app
 
Il pattern mvvm come strutturare al meglio il vostro progetto
Il pattern mvvm come strutturare al meglio il vostro progettoIl pattern mvvm come strutturare al meglio il vostro progetto
Il pattern mvvm come strutturare al meglio il vostro progetto
 
NFC, Bluetooth e comunicazione tra app
NFC, Bluetooth e comunicazione tra appNFC, Bluetooth e comunicazione tra app
NFC, Bluetooth e comunicazione tra app
 

Recently uploaded

Intro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfIntro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfpollardmorgan
 
Memorándum de Entendimiento (MoU) entre Codelco y SQM
Memorándum de Entendimiento (MoU) entre Codelco y SQMMemorándum de Entendimiento (MoU) entre Codelco y SQM
Memorándum de Entendimiento (MoU) entre Codelco y SQMVoces Mineras
 
APRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfAPRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfRbc Rbcua
 
Global Scenario On Sustainable and Resilient Coconut Industry by Dr. Jelfina...
Global Scenario On Sustainable  and Resilient Coconut Industry by Dr. Jelfina...Global Scenario On Sustainable  and Resilient Coconut Industry by Dr. Jelfina...
Global Scenario On Sustainable and Resilient Coconut Industry by Dr. Jelfina...ictsugar
 
PSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationPSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationAnamaria Contreras
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy Verified Accounts
 
Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Riya Pathan
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03DallasHaselhorst
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCRashishs7044
 
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxContemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxMarkAnthonyAurellano
 
Case study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detailCase study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detailAriel592675
 
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdfNewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdfKhaled Al Awadi
 
Marketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent ChirchirMarketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent Chirchirictsugar
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCRashishs7044
 
Islamabad Escorts | Call 03070433345 | Escort Service in Islamabad
Islamabad Escorts | Call 03070433345 | Escort Service in IslamabadIslamabad Escorts | Call 03070433345 | Escort Service in Islamabad
Islamabad Escorts | Call 03070433345 | Escort Service in IslamabadAyesha Khan
 
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu MenzaYouth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menzaictsugar
 
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncr
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / NcrCall Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncr
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncrdollysharma2066
 

Recently uploaded (20)

Enjoy ➥8448380779▻ Call Girls In Sector 18 Noida Escorts Delhi NCR
Enjoy ➥8448380779▻ Call Girls In Sector 18 Noida Escorts Delhi NCREnjoy ➥8448380779▻ Call Girls In Sector 18 Noida Escorts Delhi NCR
Enjoy ➥8448380779▻ Call Girls In Sector 18 Noida Escorts Delhi NCR
 
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfIntro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
 
Memorándum de Entendimiento (MoU) entre Codelco y SQM
Memorándum de Entendimiento (MoU) entre Codelco y SQMMemorándum de Entendimiento (MoU) entre Codelco y SQM
Memorándum de Entendimiento (MoU) entre Codelco y SQM
 
APRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfAPRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdf
 
Global Scenario On Sustainable and Resilient Coconut Industry by Dr. Jelfina...
Global Scenario On Sustainable  and Resilient Coconut Industry by Dr. Jelfina...Global Scenario On Sustainable  and Resilient Coconut Industry by Dr. Jelfina...
Global Scenario On Sustainable and Resilient Coconut Industry by Dr. Jelfina...
 
PSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationPSCC - Capability Statement Presentation
PSCC - Capability Statement Presentation
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail Accounts
 
Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
 
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxContemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
 
Corporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information TechnologyCorporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information Technology
 
Case study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detailCase study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detail
 
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdfNewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
 
Marketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent ChirchirMarketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent Chirchir
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR
 
Islamabad Escorts | Call 03070433345 | Escort Service in Islamabad
Islamabad Escorts | Call 03070433345 | Escort Service in IslamabadIslamabad Escorts | Call 03070433345 | Escort Service in Islamabad
Islamabad Escorts | Call 03070433345 | Escort Service in Islamabad
 
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu MenzaYouth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
 
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncr
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / NcrCall Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncr
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncr
 
Call Us ➥9319373153▻Call Girls In North Goa
Call Us ➥9319373153▻Call Girls In North GoaCall Us ➥9319373153▻Call Girls In North Goa
Call Us ➥9319373153▻Call Girls In North Goa
 

Sviluppare una live app notifiche, live tile, lock screen

  • 1. NOKIA WEBINAR SVILUPPARE UNA LIVE APP NOTIFICHE, LIVE TILE, LOCK SCREEN Dan Ardelean Nokia Developer Champion dan@xpresscode.eu Twitter: @danardelean
  • 2. AGENDA Cosa sone le Live App Live Tile Lock screen Notifiche Background agents Nokia Internal Use Only
  • 3. LIVE APPS 1. FONDAMENTALE per le applicazioni Windows Phone 2. Quello che fa la differenza tra Windows Phone e altri smartphone 3. Uno dei principali motivi per quale l’utente torna usare la vostra applicazione © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 4. LIVE APPS © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 5. LIVE TILES • La porta principale per accedere alla vostra applicazione • Uno spazio dove fornire il massimo delle informazioni utili all’utente • NON è solo un collegamento alla vostra applicazione • Accesso veloce alle funzionalità più usate © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 6. TILE TEMPLATES AND TILE SIZES Flip Iconic Cycle 6 Nokia Internal Use Only
  • 7. IMPOSTAZIONI TILE PRINCIPALE Doppio-click su WMAppManifest.xml © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 8. DIMENSIONI IMMAGINI Dimensione Tile Template Flip e Cycle Template Iconic Small 159 x 159 pixels 159 x 159 pixels 110 x 110 pixels Medium 336 x 336 pixels 336 x 336 pixels 202 x 202 pixels Wide 691 x 336 pixels 691 x 336 pixels N/A © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 9. FLIP © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 10. ICONIC © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 11. CYCLE © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 12. PIÙ IMPORTANTE DELLA DEMO DESIGN & FUNZIONALITÀ © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 13. ME TILE - FLIP ? OK • • • Non mi da informazioni essenziali sulla parte frontale Devo aspettare che si gira = LENTA Non ho più informazioni della versione piccola © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. X • • INUTILE Versione IL NARCISISTA 11/12/2013 Nokia Internal Use Only
  • 14. EMAIL - ICONIC OK ? © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. OK 11/12/2013 Nokia Internal Use Only
  • 15. CYCLE - FOTO © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 16. BISOGNA ESSERE CREATIVI X Bing Finance © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. My Stocks Portfolio+ 11/12/2013 Nokia Internal Use Only
  • 17. DEMO TILE © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 18. SHELLTILESCHEDULE • Aggiornamento immagine di background delle tile usando la proprietà RemoteImageUri • L’immagine deve essere più piccola di 150KB Tempo di download < 45 sec. • Risoluzione minima 1 ora • Rimossa dopo 3 tentativi consecutivi falliti • Ricorrenza Onetime, EveryHour, EveryDay, EveryWeek or EveryMonth © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 19. DEMO SHELL TILE SCHEDULE © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 20. LOCKSCREEN • La prima cosa che l’utente vede quando accende il telefono • Le applicazioni possono fornire il background della lockscreen, stato dettagliato o quick status • WMAppManifest.xml <Extensions> <Extension ExtensionName="LockScreen_Notification_IconCount" ConsumerID="{111DFF24-AA15-4A96-8006-2BFF8122084F}" TaskID="_default" /> <Extension ExtensionName="LockScreen_Notification_TextField" ConsumerID="{111DFF24-AA15-4A96-8006-2BFF8122084F}" TaskID="_default" /> <Extension ExtensionName="LockScreen_Background" ConsumerID="{111DFF24-AA15-4A96-8006-2BFF8122084F}" TaskID="_default" /> </Extensions> © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 21. LOCKSCREEN ICONA: 30 x 30 pixel PNG – bianca e sfondo trasparente Nome default - LockIcon.png <DeviceLockImageURI IsRelative="true" IsResource="false">AssetsLockLockIcon.png</DeviceLockImageURI> Prende le informazioni della tile principale Non è necessario che la tile principale si trovi nella videata Start BACKGROUND: Dalle risorse della app ms-appx:/// Uri imageUri = new Uri("ms-appx:///background1.png", UriKind.RelativeOrAbsolute); LockScreen.SetImageUri(imageUri); Da IsolatedStorage, ms-appdata:///local/ Uri imageUri = new Uri("ms-appdata:///local/background2.png",UriKind.RelativeOrAbsolute); LockScreen.SetImageUri(imageUri); © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 22. DEMO LOCKSCREEN © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 23. NOTIFICHE PUSH • • • Raw • Protocollo custom • Inviato solo se l’applicazione è in esecuzione Toast • Protocollo XML • Se l’applicazione non è in esecuzione notifica Toast Tile • Protocollo XML • Se la Tile è pinned viene aggiornata © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 24. PUSH NOTIFICATION DATA FLOW 2 URI to the service: Push enabled applications Third-party service "http://notify.live.com/throttledthirdparty/01.00/AAFRQHgiiMWNTYrRDX AHQtz-AgrNpzcDAwAAAAQOMDAwMDAwMDAwMDAwMDA" Notifications service 3 4 Send PN Message HTTP POST the message 1 Push endpoint is established. URI is created for the endpoint. MPNS: Microsoft hosted server
  • 25. NOTIFICHE HTTP HEADERS • TOAST sendNotificationRequest.ContentType = "text/xml"; sendNotificationRequest.Headers.Add("X-WindowsPhone-Target", "toast"); sendNotificationRequest.Headers.Add("X-NotificationClass", "<batching interval>"); • TILE sendNotificationRequest.ContentType = "text/xml"; sendNotificationRequest.Headers.Add("X-WindowsPhone-Target", “token"); sendNotificationRequest.Headers.Add("X-NotificationClass", "<batching interval>"); • RAW sendNotificationRequest.ContentType = "text/xml"; sendNotificationRequest.Headers.Add("X-NotificationClass", "<batching interval>"); © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 26. TOAST SCHEMA string toastMessage = "<?xml version="1.0" encoding="utf-8"?>" + "<wp:Notification xmlns:wp="WPNotification">" + "<wp:Toast>" + "<wp:Text1>WEATHER ALERT</wp:Text1>" + "<wp:Text2>Stormy</wp:Text2>" + "<wp:Param>/page1.xaml?value1=1234<wp:Param>" + "</wp:Toast>" + "</wp:Notification>"; © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 27. FLIP TEMPLATE SCHEMA <?xml version="1.0"?> <wp:Notification xmlns:wp="WPNotification" Version="2.0"> <wp:Tile Id="[TileId]" Template="FlipTile"> <wp:SmallBackgroundImage Action="Clear">[sm tile img URI]</wp:SmallBackgroundImage> <wp:WideBackgroundImage Action="Clear">[front of wd tile img URI]</wp:WideBackgroundImage> <wp:WideBackBackgroundImage Action="Clear">[back of wd tile img URI]</wp:WideBackBackgroundImage> <wp:WideBackContent Action="Clear">[back of wd tile content text]</wp:WideBackContent> <wp:BackgroundImage Action="Clear">[front of med tile img URI]</wp:BackgroundImage> <wp:Count Action="Clear">[count]</wp:Count> <wp:Title Action="Clear">[title text]</wp:Title> <wp:BackBackgroundImage Action="Clear">[back of med tile img URI]</wp:BackBackgroundImage> <wp:BackTitle Action="Clear">[back of tile title text]</wp:BackTitle> <wp:BackContent Action="Clear">[back of med tile content text]</wp:BackContent> </wp:Tile> </wp:Notification> © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 28. CYCLE TEMPLATE SCHEMA <?xml version="1.0"?> <wp:Notification xmlns:wp="WPNotification" Version="2.0"> <wp:Tile Id="[TileId]" Template="CycleTile"> <wp:SmallBackgroundImage Action="Clear">[sm tile img URI]</wp:SmallBackgroundImage> <wp:CycleImage1 Action="Clear">[photo 1 img URI]</wp:CycleImage1> <wp:CycleImage2 Action="Clear">[photo 2 img URI]</wp:CycleImage2> <wp:CycleImage3 Action="Clear">[photo 3 img URI]</wp:CycleImage3> <wp:CycleImage4 Action="Clear">[photo 4 img URI]</wp:CycleImage4> <wp:CycleImage5 Action="Clear">[photo 5 img URI]</wp:CycleImage5> <wp:CycleImage6 Action="Clear">[photo 6 img URI]</wp:CycleImage6> <wp:CycleImage7 Action="Clear">[photo 7 img URI]</wp:CycleImage7> <wp:CycleImage8 Action="Clear">[photo 8 img URI]</wp:CycleImage8> <wp:CycleImage9 Action="Clear">[photo 9 img URI]</wp:CycleImage9> <wp:Count Action="Clear">[count]</wp:Count> <wp:Title Action="Clear">[title text]</wp:Title> </wp:Tile> </wp:Notification> © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 29. ICONIC TEMPLATE SCHEMA <?xml version="1.0"?> <wp:Notification xmlns:wp="WPNotification" Version="2.0"> <wp:Tile Id="[TileId]" Template="IconicTile"> <wp:SmallIconImage Action="Clear">[sm icon img URI]</wp:SmallIconImage> <wp:IconImage Action="Clear">[med/wd icon img URI]</wp:IconImage> <wp:WideContent1 Action="Clear">[wd tile content line 1]</wp:WideContent1> <wp:WideContent2 Action="Clear">[wd tile content line 2]</wp:WideContent2> <wp:WideContent3 Action="Clear">[wd tile content line 3]</wp:WideContent3> <wp:Count Action="Clear">[count]</wp:Count> <wp:Title Action="Clear">[title text]</wp:Title> <wp:BackgroundColor Action="Clear">[hex ARGB background color of tile]</wp:BackgroundColor> </wp:Tile> </wp:Notification> © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 30. SAMPLE E APPROFONDIMENTI Windows Phone 8 JumpStart Module 08: Push Notifications http://channel9.msdn.com/Series/MVA-Jump-Start/Building-Apps-for-Windows-Phone-8-Jump-Start08-Push-Notifications http://code.msdn.microsoft.com/Windows-Phone-8-JumpStart-ab6c839a © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 31. DEMO NOTIFICHE PUSH © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 32. BACKGROUND TASKS PeriodicTask • • Eseguito ogni 30 minuti Massimo 25 secondi ResourceIntensiveTask • • • • • Il telefono è in carica collegato via WiFi e carica batteria >90% Il telefono non viene usato Tempo massimo di esecuzione 10 minuti Utilizzo memoria <= 6 MB Cancellato dopo 2 crash consecutivi © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 33. ACCESSO CONCORENZIALE public bool LoadLogFromIsolatedStorageFile() { mut.WaitOne(); // Wait until it is safe to enter try { // read the file here return true; } catch { LogText = ""; return false; } finally { mut.ReleaseMutex(); // Release the Mutex. } } © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 34. BACKGROUND TRANSFERS Trasferimento da/verso IsolatedStorage Funzionano quando l’applicazione non è in primo piano Collegamenti HTTP e HTTPS Possibilità di monitorare lo stato Impostare le condizioni usando TransferPreferences Dimensioni file: • • • Upload : 5Mb Download usando dati cellulare: 20Mb Download usando WiFi: 100Mb Dimensione massima coda trasferimenti 25 © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only
  • 35. Grazie! Blog: sviluppomobile.blogspot.com Email: dan@xpresscode.eu Twitter: @danardelean © 2013 Nokia. All rights reserved. © 2013 Microsoft. All rights reserved. 11/12/2013 Nokia Internal Use Only