Reputation: 27632
I am trying to create an specific Calendar for Windows8 Metro User Interface.
All I want to do for now is to update my tile at 12:00 am (showing the current date on the tile) even while the program is not running.
WinRT provides multiple solutions for such task but I can not use any of them for various reasons:
Register a Maintenance Background Task
but they only run if the device is on AC power.Register a Periodic Cloud URI
but they only run if the computer is connected to the internet.Register a Background Task on Timer
but they only run if the user add them to lock screen.Register a ScheduledTileNotification
but it's single, non-recurring scheduled update to a tile.is there any other solution?
Upvotes: 1
Views: 281
Reputation: 34
You don't need to be on the lock screen. Look into using scheduled tile notifications:
A code sample is here: http://code.msdn.microsoft.com/windowsapps/Scheduled-notifications-da477093
Upvotes: 1
Reputation: 7292
I think the answer here is that you have to get added to the lock screen -- this isn't something that requires the user to dig into PC Settings. You can prompt to be added to the lock screen using the supported api. Sample code is included in the Documentation -- it's a simple call, and a case of handling the result.
Upvotes: 1