Could I use the timer background task without lock screen permissions?
-
venerdì 10 agosto 2012 03:27I use the timer trigger background task,and request lock screen permissions.But when I call BackgroundExecutionManager::RequestAccessAsync(),a dialog pop up.Is there anyway that do not pop up the dialog when I use this API?
Tutte le risposte
-
venerdì 10 agosto 2012 03:34Moderatore
No. The user gets to control which apps have are on the lock screen. There is no way for an app to force this without the user's permission.
--Rob
- Proposto come risposta Jeff SandersMicrosoft Employee, Moderator lunedì 13 agosto 2012 16:12
- Contrassegnato come risposta feeeeeeeeei mercoledì 15 agosto 2012 01:48
-
venerdì 10 agosto 2012 06:05
hi,Rob
In my application,I want do something every 15 minutes.So I use the timer background task,but the timer trigger required lock screen permission.When first run my application,I call BackgroundExecutionManager::RequestAccessAsync() to requre this permission,but there always pop a dialog.And in windows 8 RP,the samples pre-installed by miscrosoft had this permission,but I don't see them pop this dialog.So I want to konw how they implement and whether I can do.
How to implement -
venerdì 10 agosto 2012 17:09Moderatore
There is no way for an app to set this programmatically. The user has control over which apps appear on the lock screen.
Calling BackgroundExecutionManager::RequestAccessAsync() and letting the user choose to allow the app or not is the appropriate thing to do.
When you set up a system image you can preinstall apps and set this state, but I don't know the details beyond that it cannot be done after the fact. For more information about setting up an image see Service a Windows Image . Doing so isn't an app development topic, so please post any questions you have about how to do this in the appropriate Windows 8 Installation, Setup, and Deployment forum on TechNet.
--Rob
- Proposto come risposta Jeff SandersMicrosoft Employee, Moderator lunedì 13 agosto 2012 16:12
- Contrassegnato come risposta Rob CaplanMicrosoft Employee, Moderator martedì 14 agosto 2012 22:43
-
lunedì 13 agosto 2012 06:21
Thanks,Rob.
I also had some questions about timer trigger background task.Is there anyway that I can use timer trigger background task without lock screen permission?I don't want my application pop the dialog.It's annoying.
It's annoying -
lunedì 13 agosto 2012 16:11Moderatore
No you cannot.
Please review this document to get a good idea of what you can do with background tasks and their requirements:
http://www.microsoft.com/en-us/download/details.aspx?id=27411
Jeff Sanders (MSFT)
- Proposto come risposta Jeff SandersMicrosoft Employee, Moderator lunedì 13 agosto 2012 16:11
- Contrassegnato come risposta Jeff SandersMicrosoft Employee, Moderator martedì 14 agosto 2012 11:47
-
martedì 14 agosto 2012 00:25
Thanks,jpsanders.
I got it.

