Page 1 of 1
detectin auto sync toggle
Posted: 12 Aug 2015 07:52
by MURTUMA
I have a few flows, which manages the synchronizeing on my phone. Some apps turns the auto syncing on and that's undesirable behaviour as I want solely AM to handle that.
Is there a way to detect when the setting is toggled? I've tried the system setting changed trigger, but couldn't find relevant setting.
Re: detectin auto sync toggle
Posted: 12 Aug 2015 18:05
by Martin
You could use trigger Auto Sync State but this will only detect if the global auto sync switch is turned on or off but not on an account basis.
Another option is to periodically execute condition 'Auto Sync Enabled' which also allows to check the setting for a specific account and/or authority. I would recommend to use trigger Periodic Timer Inexact with 'Wake device...' disabled to not drain the battery.
Regards,
Martin
Re: detectin auto sync toggle
Posted: 13 Aug 2015 07:55
by MURTUMA
I have to read changelogs more carefully. I wasn't aware of such trigger. It is sufficient enough for my needs. Thanks!