省电模式开启时,后台代理无法运行 [英] Background agent doesn't run when battery saver mode is on

查看:135
本文介绍了省电模式开启时,后台代理无法运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个可以完美运行的PeriodicTask,但是即使我已通过Battery Saver应用程序允许该应用在此状态下在后台运行,如果打开了省电模式,它也不会运行./p>

有什么想法可能导致它无法运行?我应该补充一点,我正在使用后台代理内部的Telerik的LiveTileHelper控件生成新的前后实时平铺图像,并且也发出了http请求(该应用程序是气象应用程序).这是针对Silverlight Windows Phone 8应用的.

很抱歉这个问题很普遍,但是我假设解释并不需要我共享代码.

任何见识将不胜感激.

Bardi

解决方案

这是设计使然.

在省电模式下,后台代理不会运行,当然包括后台代理也不会运行.

您不能通过Battery Saver应用程序在此状态下允许应用程序在后台运行. 相反,即使手机处于正常状态,您也可以禁止该应用在后台运行.但是在省电状态下,无论设置如何,都不允许不允许后台代理.唯一可以使用的方法-完全禁用省电模式.

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

解决方案

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.

这篇关于省电模式开启时,后台代理无法运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆