【问题标题】:Windows phone 8: Live tile updates in the emulator but not when downloaded from the maketWindows phone 8:模拟器中的动态磁贴更新,但从 maket 下载时不更新
【发布时间】:2013-06-25 20:21:32
【问题描述】:

我为 windows phone 8 制作了一个带有动态磁贴的应用程序。该磁贴被编程为每 30 秒刷新一次。在模拟器中运行应用程序或在单元格 (Lumia 920) 中部署应用程序时,磁贴可以正常工作。但令人惊讶的是,当我从市场上下载相同的应用程序并在同一设备上运行它时,磁贴不会更新。

我对这个问题做了很多研究,发现很多其他人都观察到了类似的问题,可以在here 找到。

请告诉我出了什么问题。

额外信息:我尝试过调整磁贴的大小、固定和取消固定磁贴以及硬重置。我也尝试过更改刷新周期(最初刷新周期为 5 秒)。我还检查了该应用是否允许后台任务。

谢谢, 阿普尔瓦帕塔克

【问题讨论】:

    标签: windows-phone-7 windows-phone-8 live-tile windows-phone-7.8


    【解决方案1】:

    后台代理有一定的限制,如下所列。

    Background tasks can minimally be run every 30 minutes. There is a debug-only API to run them more regularly, but this is not available for released apps.
    Some low power devices do not support background agents
    Background tasks are limited by number on each device and can be enabled or disabled from application settings.
    They do not work when power saver mode is activated. 
    

    【讨论】:

    • 感谢您的回复。但是当我在同一设备上部署应用程序时,磁贴可以正常工作并每 30 秒刷新一次。为什么只有当我从市场下载并安装该应用程序时才会出现此问题? -Apurva Pathak
    • 用于测试目的 ScheduledActionService.LaunchForTest(task.Name,TimeSpan.FromSeconds(60));和 API 行为在测试和市场中有所不同。
    【解决方案2】:

    正如 Mahantesh 正确指出的那样,在您部署应用程序时您的磁贴可以正常工作,因为 ScheduledActionService.LaunchForTest() 允许运行 60 秒以用于调试和测试目的

    因此,如果应用程序发布到市场并且用户从那里下载它,则无法调用此方法,并且时间限制小于 30 分钟。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-04-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多