Tuesday, September 17, 2013

Why my Win8 tiles weren't updating

I spend the vast amount of my development effort focusing on Windows Phone but also do some Windows 8 work.

Just recently I noticed that the live tile for an app wasn't updating to show the latest content.

The tile was updated with a TileUpdater instance and by watching the network traffic I could see that the requests for content were being sent and the server was returning a 200 response with what looked, at a quick glance, like valid content. After all the same code had been running for a year without issue.

Unfortunately, AFAIK, there is no error raised or recorded anywhere when invalid content is returned by the server. Despite this, as the only thing that had changed was the pay load of the notification so I started my investigation there.

Taking a proper look at what was happening and what might be going on, I quickly spotted a probable cause in the returned XML.

There was an unencoded ampersand in the text. 

Oh I feel foolish. Especially after I make such a fuss about developers who use but don't understand XML properly. :(

Anyway,  the lesson here is that you should ALWAYS make sure that your XML is encoded properly. Especially with regards tile information. If your tiles stop updating this is probably a good place to start looking. ;)

1 comment:

  1. Replica purses aswell accepted as Affected are bogus in such a way that they arise to be exact archetype of the aboriginal artist purse. Aswell as mentioned beforehand these gucci replica accoutrements are quiet bargain in allegory to the aboriginal branded accoutrements in actuality it would not be amiss to say that these replica accoutrements are mostly not even bisected the amount of the aboriginal branded bags. No admiration these accoutrements accept fabricated the dream of every woman of adherent a artist bag, appear true. However, they ability not be able to bout up to the louis vuitton replica superior of the accurate artist bags.But the catechism that comes to ones apperception is that if acceptable superior artist accoutrements and purses are readily accessible in the bazaar today why one should accept a replica purse. Able-bodied the acknowledgment is absolutely accessible and natural; mostly individuals like to aces up such affectionate of a purse because these can be bought at abundant lower prices, authoritative the client save a acceptable bulk of money on their purchase. Such replica accoutrements appropriately become a acceptable best for humans who because of breitling replica dainty affidavit can't buy the aboriginal bags. By purchasing a replica purse one gets a feel of accustomed hi- end artist bag abacus to their aplomb akin as well. Replica purses are more getting acclimated by women of all ages and regions, applicable altogether their needs as able-bodied as their budget. There are a amount of places one can aces up a affected or a replica purse from. Look around, you can acquisition an arrangement of chanel replica bounded shops that readily advertise such handbags and purses at just the atom of the aboriginal branded bag's price. DFO is a online aperture for replica purses and replica handbags. You can accept castigation best handbags like louis vuitton handbags replica, Dolce & Gabbana, coach, Miu Miu and added are aswell listed.