detectin auto sync toggle

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

detectin auto sync toggle

Post by MURTUMA » 12 Aug 2015 07:52

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.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: detectin auto sync toggle

Post by Martin » 12 Aug 2015 18:05

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

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: detectin auto sync toggle

Post by MURTUMA » 13 Aug 2015 07:55

I have to read changelogs more carefully. I wasn't aware of such trigger. It is sufficient enough for my needs. Thanks!

Post Reply