How to update live tile (win 8 app) every 30min? (javascript)

I have function "UpdateIt()" and that update my tile. So question - how I can execute this function in background?

Thanks

有帮助吗?

解决方案

var changetitletimer = setInterval(function() { UpdateIt(); } , 1800000);
/* 1800000 is the value for 30min in milliseconds */

if you wish to stop it:

clearInterval(changetitletimer);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top