How to create an auto updating Adaptive Tile in Windows 10 using C#

861 Views Asked by At

I would like to create an Auto Updating Adaptive live tile in windows 10. I have a webservice i need to call to get the status of a few things and return and i would like to be able to publish that to the tile, if the user clicks the tile it opens a hyperlink (to a SAAS Solution)

I have spent some time googling and i have spent some time going through MSDN and i've found all the stuff on tile notifications and the XML to produce the actual tile, i know it needs to go into a UWP project, however i cannot for the life of me figure out where in that project it needs to go, or what actually calls the updating etc, i'm not creating an app that runs on the client as far as i'm aware? i just want a live tile that i can update content on every 30 minutes from a custom web service.

Does anyone know of an example (preferably c#, though any .NET language would probably be fine and i can backwards engineer) of how to do this?

Thanks!

3

There are 3 best solutions below

4
Mehrzad Chehraz On

An app needs to be installed on client to have a tile space available for you. Then you can update the tile through push notifications or by running a background task.

0
Sven Borden On

UWP Toolkit released by Microsoft a few days ago may help you, there is a part regarding Live tiles managing there

0
Jay Zuo On

According to your description, I think what you need is Periodic notification.

Periodic notifications, which are also called polled notifications, update tiles and badges at a fixed interval by downloading content from a cloud service. To use periodic notifications, your client app code needs to provide two pieces of information:

  • The Uniform Resource Identifier (URI) of a web location for Windows to poll for tile or badge updates for your app
  • How often that URI should be polled

Periodic notifications enable your app to get live tile updates with minimal cloud service and client investment. Periodic notifications are a good delivery method for distributing the same content to a wide audience.

The UWP side is simple, you can refer to Quickstart: Setting up periodic notifications (XAML) and Push and periodic notifications sample for Windows 8.1 and re-using its source code in your Windows 10 app. For the server side, you need provide a URI that can accept HTTP GET request and return the correct tile content as XML.

For more info, please see Periodic notification overview.