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