I’d like to replicate the same behavior of WhatsApp for voice messages: when the user presses a button and keeps it pressed the voice is recorded.
When the user releases the button the recorder stops.
@tylerboodman I adapted your strategy and it worked pretty well.
For the knowledge of everybody looking for the same solution, here is what I did:
I created a group (it is going to work as a button) and a hidden text (it is going to work as a trigger).
Considering that you can’t set the condition “is pressed” in workflows to trigger the recorder, I put 2 conditions for the text. These conditions will trigger the recorder in workflows.
Then I created 2 workflows: one to start recording and another to stop recording. Both are triggered when a condition is changed. In this case the text visibility.
This way when I press the START/STOP button the text is exposed and the recorder starts. When I release the START/STOP button the text is hidden and the recorder stops.