- #WINDOWS 8 LIVE TILES APPS HOW TO#
- #WINDOWS 8 LIVE TILES APPS UPDATE#
- #WINDOWS 8 LIVE TILES APPS CODE#
If (result = BackgroundAccessStatus.AllowedMayUseActiveRealTimeConnectivity ||
Var result = await BackgroundExecutionManager.RequestAccessAsync() Private const string TASK_ENTRY = "BackgroundTasks.TileUpdater" Private const string TASK_NAME = "TileUpdater"
#WINDOWS 8 LIVE TILES APPS CODE#
In my MainPage.Xaml (OnNavigatedTo) I have the below code I have followed the steps from the example. I have added the windowsrt component in my app as a ref, changed the package.manifest with the necessary changes(putting a badge logo ,adding in the declarations the background tasks etc). I have downloaded the sample TileUpdateBackgroundTask. Where should I put the call of my custom web service ? in the TileUpdater class ? without enabling lock screen notifications.Ģ. I'm getting an error when I run my app which says App Manifest declares background task of timer,bla bla. I have downloaded the sample that you have proposed me, added the tile updater class in my project, went to the package.manifest(declarations tab) and added the backgroung task )ġ.
#WINDOWS 8 LIVE TILES APPS HOW TO#
The aspx and as I told you I don't know how to do that. I don't know how to call the aspx ,pass arguments etc because the webservice has a business logic which I must call from inside Webservices are not designed for timer things only for on demand requests so I think that my last solution is the background task. It will be ideal if I didn't have arguments. The time and effort necessary to add this code is negligible in comparison to the benefit of showing users your latest content, right on their start screens.The thing is that I need to call the webservice to get the data and I have arguments for the call. That said, any website that produces frequent content updates should have its own live tile. If you try tapping on the Mail tile, you end up in your inbox, not in the message you might have seen on the tile surface. Unfortunately, this is simply how live tiles work. This may be a bit misleading if you were expecting to go to a story on "Breaking news: Morsi Out In Egypt Victory" but end up being brought to the home page of the news site instead. Right now a brute workaround would be to emblazon your logo over all the images on your RSS feed so that they show up on the tile.Īnother gripe we have is that, as with all live tiles for sites and apps, clicking on the tile takes you to the website home page, not to the article whose picture you saw. We would especially like to have some control over a lower banner overlay on the tile to make sure the site's name is always displayed, or to cycle a custom frame as part of the polling cycle so that users know what site those updates are from. It might be worth watching to see what updates Microsoft rolls out for pinned sites on the Start screen. There are many more customizations available on Microsoft's documentation for Pinned Sites, but many of them are only supported in the desktop version of IE. Insert the line of code below in the section of your code. Use an additional meta tag to control what page your site will start on.
Sometimes a user may pin your site to their Start screens from a secondary page, but you might like to direct them to your home page every time they open your pinned site.
#WINDOWS 8 LIVE TILES APPS UPDATE#
So if you changed your code to update every hour, here's what your code should look like: But if that's not right for you either, go into your code and look for the line below:Ĭhange the number after "frequency=" to reflect the number of minutes you would like to use as an interval. If you copied the code directly from BuildMyPinnedSite, the frequency will have been set at 30-minute intervals.
Microsoft only allows updates up to every 30 minutes for now and not more frequently. If that isn't frequent enough for your site, you may set it to update every 30 minutes, 60 minutes, six hours or 12 hours. If the basics aren't enough for you, and you'd like a lot more control over the way your site's live tile behaves, here's how to make changes to the code for more control over your tile.īy default, the RSS feed of your website will be pinged once a day to check for updates. As long as your RSS feed has images in it, the tile will rotate through your most recent five articles with images. You now have a basic, functioning live tile for your website that will feature beautiful live updates from your RSS feed.