- Trigger on MYNAME
- Sleep 5sec
- Answer ringing call
When I add a fourth step at the end to turn speaker on, then the whole flow fails: the trigger does not work, neither answering the call.
If I suppress the SpeakerPhone step then flow works again.
Why a failing step would make the whole flow fail?
I am getting lost with Automagic, flows seems to randomly work without changing anything.
Deleting all flows seems to clean runtime but after a few attempts a working flow will start failing even without changing anything to the flow.
Code: Select all
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<data version="1.37.0">
<trigger type="notification_status_bar_displayed">
<useDefaultName>false</useDefaultName>
<name>Notification on Statusbar Displayed: PhoneText contains text MYNAME</name>
<enabled>false</enabled>
<packageNameFilter>com.android.incallui</packageNameFilter>
<textMatchField>TEXT</textMatchField>
<textMatchType>CONTAINS_TEXT</textMatchType>
<textFilter>MYNAME</textFilter>
<ignoreRegular>false</ignoreRegular>
<ignoreOngoing>false</ignoreOngoing>
</trigger>
<action type="answer_ringing_call">
<useDefaultName>false</useDefaultName>
<name>Answer Ringing Call</name>
<method>TELECOM_MANAGER</method>
</action>
<action type="set_speakerphone_state">
<useDefaultName>true</useDefaultName>
<name>Set Speakerphone State: On</name>
<enable>true</enable>
</action>
<action type="sleep">
<useDefaultName>true</useDefaultName>
<name>Sleep: 5s (keep device awake)</name>
<duration>5s</duration>
<keepDeviceAwake>true</keepDeviceAwake>
<allowWakeupFromDeviceIdle>false</allowWakeupFromDeviceIdle>
</action>
<flow type="flow">
<name>Flow1 copy</name>
<enabled>false</enabled>
<executionPolicy>PARALLEL</executionPolicy>
<triggercontainer id="t1" x="70.0" y="-122.5">
<trigger>Notification on Statusbar Displayed: Phone Text contains text MYNAME</trigger>
</triggercontainer>
<actioncontainer id="t2" x="70.0" y="87.5">Sleep: 5s (keep device awake)</actioncontainer>
<actioncontainer id="t3" x="70.0" y="297.5">Answer Ringing Call</actioncontainer>
<actioncontainer id="t4" x="70.0" y="507.5">Set Speakerphone State: On</actioncontainer>
<connection from="t1" to="t2" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
<connection from="t2" to="t3" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
<connection from="t3" to="t4" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
</flow>
</data>