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
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: