flow only 1 time

Post your questions and help other users.

Moderator: Martin

Post Reply
mata77
Posts: 5
Joined: 18 Jan 2016 15:49

flow only 1 time

Post by mata77 » 19 Mar 2020 09:01

hi bro,
i have a need: i would like to flow only 1 time .. what can i do?
the problem is now that the flow, starting with a bluetooth connection, provides for the switching off and on again, and then the flow goes in loop

thank you!

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: flow only 1 time

Post by Desmanto » 19 Mar 2020 18:26

Hi, we need to see the flow to spot the problem. What is the trigger of the flow? Looping usually happen when you use similar trigger and action in the same flow. Example, using Trigger Bluetooth State On with action set Bluetooth on.

If need to make sure only one execution at one time, change the flow options > Execution policy to "Skip". Add a sleep 500ms to 1s at the end of the flow to protect from looping.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

mata77
Posts: 5
Joined: 18 Jan 2016 15:49

Re: flow only 1 time

Post by mata77 » 20 Mar 2020 14:50

thank you! I applied the final sleep and changed the flow on skip :)

Post Reply