App task ended variables
Posted: 15 Apr 2015 15:48
I have a flow which toggels something off when I open specific apps and then on when I close the app. The app list is not constant, I have to change them from time to time and thats why I tried to write the flow in a way which aliminates the need of editing as much as possible.
The flow:
Trigger1: app task started; (com.app1, com.app2, etc)
Trigger2: app task ended; {global_package_name}
Condition: app task running, most recent; {package_name} //this works good and eliminates one place to edit
False: Toggle off
True: Toggle on
After toggle on I use action: script; global_package_name = {package_name}
The trigger2 never fires. There are no typos and variable values is correct.
EDIT: I noticed the said trigger does not support variables according to the help file. Seems like this topic can be moved to feature requests forum.
The flow:
Trigger1: app task started; (com.app1, com.app2, etc)
Trigger2: app task ended; {global_package_name}
Condition: app task running, most recent; {package_name} //this works good and eliminates one place to edit
False: Toggle off
True: Toggle on
After toggle on I use action: script; global_package_name = {package_name}
The trigger2 never fires. There are no typos and variable values is correct.
EDIT: I noticed the said trigger does not support variables according to the help file. Seems like this topic can be moved to feature requests forum.