windows 8 - Tile notification doesn't work if image doesn't exist at specified uri -


at server side send tile notifications via uri:

<?xml version='1.0' encoding='utf-8'?> <tile>     <visual lang=""en-us"">         <binding template=""tilewidesmallimageandtext02"">             <image id=""1"" src=""{0}""/>             <text id=""1"">{1}</text>             <text id=""2"">{2}</text>         </binding>     </visual> </tile> 

{0} uri image e.g. ms-appdata:///local/folder/{id}.jpg problem server doesn't know if specific image exists or not , in case if not - tile notification won't work (tile won't updated) there solutions e.g. specify default image or default binding (without image).

a tile notification shown if of image resources referenced present , valid. fallback different image not possible. isn't possible have tile notification shown if server referencing local images may or may not present on client.

there 2 possible alternatives may of use in situation:

  1. host images on server, available clients.

  2. omit image nodes in xml template may or may not present on clients. of nodes in xml template can removed. taking tile notification xml example, tile notification shown if image node removed:

    <?xml version='1.0' encoding='utf-8'?> <tile>     <visual lang="en-us">         <binding template="tilewidesmallimageandtext02">             <text id="1">first text</text>             <text id="2">second text</text>         </binding>     </visual> </tile> 

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -