Live tiles for Days Until Xmas

Yesterday I blogged about the release of the Days Until Xmas application (don't forget you can grab it from the Zune Marketplace here - http://bit.ly/acLe1V).

A lot of the feedback I have been getting from friends and reviewers (can we please get the ability to respond to reviewers comments on the Zune Marketplace?) is that the application needs live tiles, which shows the days running down to Christmas. This is something I kept thinking and thinking about and it ended up coming down to the two ways you can update the live tiles on Windows Phone 7. These are...

Push Notifications

Push notifications is probably the most common way data is going to *pushed* to your phone/application. Push notifications require a separate server to send the push notifications and also to know the unique URI of the device that will receive the notification. In the case of the Days Until Xmas application, this would create lots of work to manage users who have signed up for the application, what time-zone the user is in, every time the application loads up we would need to check that the user is in the same time zone and so on. The server would then every half an hour need to check if any of the users time zones went over the day mark and send a push notification out so the tile could be update. Since this is just a fun out of hours project, this could consume a lot of time to implement. This still wouldn't account for users who have push notifications turned off/have no data access and would leave an incorrect day on the home screen.

Local Notifications

The ShellTileSchedule allows the developer to schedule updates to the phone without the need for any external server managing push notifications. This still requires the need to have a data connection since any live tile received from the application comes from an external URL. The schedule can be set to fire off at intervals throughout the day, however; the issue with this is in the context of the Days Until Xmas application is that the URL, where the application goes to gather the live tiles is hard coded, for a shell tile schedule is the same for each scheduled interval. This means that we cannot go and get a different day/tile for the current application without changing the image URL when the application loads up so the application would update the tile every time the app loads up but kind of defeats the point of a live tile.

Your thoughts...

So after hearing this, what are your thoughts? Maybe I'm missing something obvious but sadly time is a rather complex thing and varies from location to location but I'm open for any ideas.

I hope this helps, maybe it's worth having the tile update when you load up the application anyway?

Cheers,

ChrisNTR

Published Wednesday, November 10, 2010 11:11 PM by Chris Hardy (ChrisNTR)

Comments

# Twitter Trackbacks for Blogged: Help get Live Tiles for Days Until Xmas on Windows Phone 7 - #wp7 #wp7dev #wp7devuk Pls RT :) [asp.net] on Topsy.com

Pingback from  Twitter Trackbacks for                 Blogged: Help get Live Tiles for Days Until Xmas on Windows Phone 7 -  #wp7 #wp7dev #wp7devuk Pls RT :)         [asp.net]        on Topsy.com

# re: Live tiles for Days Until Xmas

Wednesday, November 10, 2010 9:54 PM by Chris Craft

Hi,

Here's what you want to do.

Create your tile image somewhere:

www.cjcraft.com/daysuntil.png

Create a back process that runs every night, or hour, and updates daysuntil.png

Set up the device to use ShellTileSchedule to check every X hours or every day for updates from your daysuntil.png

URL.

If you have the app update hourly, then you can take the users time zone and assign that device to an url that matches to that timezone. You'll need 24 images then but no biggie:

www.cjcraft.com/.../daysuntil.png

# Days Until Xmas by ChrisNTR | Entertainment | Windows Phone 7 Apps

Pingback from  Days Until Xmas by ChrisNTR | Entertainment | Windows Phone 7 Apps

Leave a Comment

(required) 
(required) 
(optional)
(required)