Search code examples
windows-phone-7settingswindows-phone-7.1background-agent

Background Agent disabled from phone's settings


My application makes use of a Background Agent to do a periodic task. As told in the background agents' guidelines, I offer the user the choice to enable/disable this feature. I use a ToogleSwitch control with its isChecked property bound. However, I do not know how to detect if user has disabled the agent from phone's settings; should I delete and reschedule the agent each time to check it?

Thanks,

Eddie


Solution

  • You don't need to check it. Your task is to create app that will work in any condition, even if Background Agent is disabled.

    UPD:

    Detecting When Background Agents Have Been Disabled