MBZ
MBZ

Reputation: 27632

update application tile when the device is on battery, not connected to internet,

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:

  1. It is possible to Register a Maintenance Background Task but they only run if the device is on AC power.
  2. It is possible to Register a Periodic Cloud URI but they only run if the computer is connected to the internet.
  3. It is possible to Register a Background Task on Timer but they only run if the user add them to lock screen.
  4. It is possible to Register a ScheduledTileNotification but it's single, non-recurring scheduled update to a tile.

is there any other solution?

Upvotes: 1

Views: 281

Answers (2)

Nathan
Nathan

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

Dominic Hopton
Dominic Hopton

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

Related Questions