Hi, I have new findings. I tried your suggestion but let me first explain the findings.
In my previous message I mentioned that the task worked once or twice. I found a way to trigger this odd behavior. For the next example I worked with the Missed called notification, which has the Llamar (Call) and Responder (Reply) buttons:
I created a missed called notification by calling from another number. Started screen recording
https://youtu.be/rM71JUe1KIY. Then this is what happens:
1) I show the action details, and get into the edit Button text
. Save the changes without making any modifications. Return to the task.
2) Run the task (00:28) : it works. The Llamar (Call) button is pressed
3) I make another missed call (00:42)
4) Re-run the task but it doesn't do anything no matter how many times I try.
5) I go back to editing the action without changing anything, save it.
6) Run task again and there you go! Worked.
7) Create another missed called, run task and it fails again...
TLDR: the action only works once, that is, right after saving the action. You need to resave the action to make it work once again.
About you offered solution, it's actually %anbutton2action()
However, either anbutton1 or anbutton2 do the same thing as if I pressed on the notification not what I want! . But also, only works once after saving the action.