330 likes | 340 Views
Learn about the new features in Windows Phone 8 for notifications and tiles, including push notifications, new tile templates, and lock screen integration.
E N D
Integrating with WP8:Notifications and Tiles Thomas Fennel Program Manager
I’m Thomas
Agenda • About Tiles and notifications • Experience • Architecture • What we heard after WP7.5 • What’s new in 8.0 • New Push features • New Tiles features and demo • New Lock features (wait, did he say lock?) and demo
The story so far… Tile Notifications Primary, secondary, front and back Toast Notifications
What we heard after 7.5 Push notifications are rock solid now, but the 30 endpoint limit still feels silly The new back of tile is awesome, but I still want more! The tile API is easy to use, but there are inconsistencies that need work Let me do more things built-in experiences can do!
What can we say, we're totally excited about the new Live Tile and Push Notification system. Microsoft is keen on making it easier, more robust, smarter and more than just a simple alert system.– wpcentral.com
New push notification features Can you say…? Push + Data Sense Push to wake VoIP ∞ 4
Consistency is a key focus point ShellTileSchedule can update all tile properties ShellTile can use remote URIs for images during tile creation BONUS: All ShellTileData classes can accept XML string (same payload as Push Notifications!) Local Tile API updates
Flip Tile Template (TemplateFlip, FlipTileData) small: 159x159 medium: 336x336 wide: 691x336
Cycle Tile Template (TemplateCycle, CycleTileData) small: 159x159 medium: 336x336 wide: 691x336 wide center crops to medium
Iconic Tile Template (TemplateIconic, IconicTileData) small: 110x110 medium: 202x202 white with transparency onlycrop tight on horizontal
demo • new tiles features
WP7.5 apps will get the small tile size for free in WP8! Absolutely zero work required The medium asset will be scaled down for the small size on primary and secondary tiles Tiles back compat story
Primary Tile: Template5 TemplateFlip | StandardTileData FlipTileData WMAppManifest.xml – new entry declaring lightup New small, medium, wide (optional), AppList WXGA Assets ShellTile.Update(TemplateFlip) on first run with local image Secondary Tiles: Reflection can get new classes, so you get new templates and sizes! Tiles LightUp(How to get the best of the new, while still supporting the current) http://mangopollo.codeplex.com
demo • tiles lightup
Lock screen notificationsApplications can show content and a count on the lock screen Lock screen settings or deep link from app Detailed status is the content from the primary tile (if available) Quick status shows designated icon with count from primary tile (when > 0) Works even if no Tile is pinned to Start! Declare in manifest Extensions element
Lock screen backgroundApplications can dynamically update the lock screen background User can choose background image provider in “lock screen” settings and launch your app from there! ?WallpaperSettings=1 Application can programmatically ask to be background provider, get and set with new WinRTAPI – goes great with agents! Provide a WXGA default image in XAP root Declare in manifest Extensions element
demo • new lock features
How did we do? No more push notification endpoint limit! 3 new Live Tile templates! Small, medium, and wide sizes! I’m in Live Tile heaven! Consistent APIs with greater flexibility! Easy multires/back compat and Live Tiles LightUp! Deeper integration than ever before!
Removing 2 week limit on agent execution! If the user decides your app is useful, we want to reward that. Applications with Tiles pinned to Start Primary or secondary tiles calling ShellTile.Update from PeriodicTask Applications using lock Count or detailed status (works even if no Tile pinned to Start!) Current background image provider calling SetImageUri Tiles and lock – one more thing…
WP8 at BUILD • Thursday 11/1 • 08:30 - 09:30 | WP8 Maps, Location & Background | 92 Magellan • 10:15 – 11:15 | WP8 Performance & Optimization | 92 Magellan • 12:00 – 01:00 | WP8 Photo & Lens Apps | 92 Magellan • 02:30 – 03:30 | How to Leverage your code across WP8 and Win 8 | 33 McKinley • 02:30 – 03:30 | WP8 Tiles, Lock and Notifications | 92 Magellan • 04:15 – 0:515 | WP8 Native C/C++ Game Development | 33 McKinley • 04:15 – 05:15 | WP8 Using C++ in your Applications | 92 Magellan
WP8 at BUILD • Friday 11/2 • 08:30 – 09:30 | WP8 Using C++ in your Applications | 33 McKinley • 08:30 – 09:30 | WP8 Using the Speech API | 92 Magellan • 10:15 – 11:15 | WP8 Wallet and Deals | 92 Magellan • 12:45 – 01:45 | WP8 App to App Communication | 92 Magellan • 02:30 – 03:30 | WP8 Enterprise Development | 92 Magellan
RESOURCES • Resource Listhttp://wpdev.ms/phonedevres • Certification Requirementshttp://wpdev.ms/certreq • “How To” Indexhttp://wpdev.ms/howtos • Official Sampleshttp://wpdev.ms/officialsamples • Forumshttp://wpdev.ms/ahforum • Supporthttp://wpdev.ms/devsupport • JW on Metro Design for Devshttp://wpdev.ms/thejeffonmetro
MIDDLEWARE • Windows Phone Toolkithttp://silverlight.codeplex.com • Little Watson, (in Northern Lights toolkit)http://northernlights.codeplex.com • Tombstone Helperhttp://tombstonehelper.codeplex.com • Your Last About Dialoghttp://ylad.codeplex.com • Notify Property Weaverhttp://visualstudiogallery.msdn.microsoft.com/bd351303-db8c-4771-9b22-5e51524fccd3 • Coding 4 Fun Toolkithttp://coding4fun.codeplex.com • WP App Site Templatehttp://wp7appsite.codeplex.com
COMMUNITY • User Voicehttp://wpdev.uservoice.com • Twitter - #WPDEVhttps://twitter.com/#!/search/%23wpdev