Background agent doesn't run when battery saver mode is on

早过忘川 提交于 2019-12-11 12:11:42

问题


I'm using a PeriodicTask that works flawlessly, but it doesn't run if the battery saver mode is on, even though I've allowed the app to run in the background in this state via the Battery Saver app.

Any ideas what may be causing it from not running? I should add that I'm generating a new front and back live tile image using Telerik's LiveTileHelper control inside the background agent, and that a http request is made too (the app is a weather app). This is for a Silverlight Windows Phone 8 app.

Apologies for being quite general with the problem, but am assuming the explanation doesn't require me to share code.

Any insight will be much appreciated.

Bardi


回答1:


This is by design.

In battery saver mode the background agents do not run, including of course your background agent.

You can’t allow an app to run in the background in this state via the Battery Saver app. Instead, you can forbid the app to run in the background even when the phone is in the normal state. But in the battery saver state no background agents are allowed regardless on the settings. The only thing that can be done with it — completely disable the battery saver state.



来源:https://stackoverflow.com/questions/26027943/background-agent-doesnt-run-when-battery-saver-mode-is-on

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!