Page 1 of 2

Perform Action on Notification on Statusbar (Not Working)

Posted: 16 May 2021 21:25
by Mardaunt
Hello, dear comrades!
How are you all doing here? I need a little support. Because if it's not here, I can't get it anywhere.
I created a flow that copies information from a notification from WhatsApp.
Then, he clicks on the "Mark as Read" button.
But my flow doesn't want to push the button. Throws the error "No such button found".
And I have to click on the notification to mark the message as read. As far as I understand, the "Mark as Read" button click function doesn't work on my phone. But I really need to click on it inside flow.
My phone is Meizu U20 (Android 6).
Please tell me, are there any alternative ways to programmatically click on the notification button?
PS: Sorry for such huge pictures. I didn't find a tag with a spoiler. =(
Image Image

Re: Perform Action on Notification on Statusbar (Not Working)

Posted: 17 May 2021 07:40
by Wibbly
The the text on the button exactly the same as the text in the action to press the button?

Re: Perform Action on Notification on Statusbar (Not Working)

Posted: 17 May 2021 13:01
by Mardaunt
Wibbly wrote:
17 May 2021 07:40
The the text on the button exactly the same as the text in the action to press the button?
Yes. At first, I also thought that the problem was in the button text. I tried running this flow on a Xiaomi phone. On it, he presses this button.

Re: Perform Action on Notification on Statusbar (Not Working)

Posted: 17 May 2021 13:10
by Mardaunt
Here's what I'm thinking. Is it possible to make clicks by setting the coordinates for the click? That is, is it possible to write a script that makes a click to a specific location?

Re: Perform Action on Notification on Statusbar (Not Working)

Posted: 17 May 2021 19:01
by Mardaunt
I add action: Execute Root Command: input tap 800 250
But her working is very lazy. Command running 2-3 second. It is very long time.
The question is still open =(

Re: Perform Action on Notification on Statusbar (Not Working)

Posted: 18 May 2021 11:01
by Wibbly
> But my flow doesn't want to push the button. Throws the error "No such button found"

Can you get it to work with notifications from other apps with simplest flow triggered by the notification? It would be interesting to know if it's specific to your flow and WhatsApp, or a general problem.

Re: Perform Action on Notification on Statusbar (Not Working)

Posted: 19 May 2021 08:46
by Mardaunt
Wibbly wrote:
18 May 2021 11:01
> But my flow doesn't want to push the button. Throws the error "No such button found"

Can you get it to work with notifications from other apps with simplest flow triggered by the notification? It would be interesting to know if it's specific to your flow and WhatsApp, or a general problem.
This is nice idea. Okey.
I'll check it out tonight.

Re: Perform Action on Notification on Statusbar (Not Working)

Posted: 19 May 2021 16:54
by Mardaunt
Mardaunt wrote:
19 May 2021 08:46
Wibbly wrote:
18 May 2021 11:01
> But my flow doesn't want to push the button. Throws the error "No such button found"

Can you get it to work with notifications from other apps with simplest flow triggered by the notification? It would be interesting to know if it's specific to your flow and WhatsApp, or a general problem.
This is nice idea. Okey.
I'll check it out tonight.
I tried click button on notification from Telegram (Replay).
But its to not working.

Re: Perform Action on Notification on Statusbar (Not Working)

Posted: 22 May 2021 11:01
by Wibbly
Does AM have notification access?

The feature is working on my Pixel 3a XL running A11

Re: Perform Action on Notification on Statusbar (Not Working)

Posted: 02 Jun 2021 10:47
by Mardaunt
Wibbly wrote:
22 May 2021 11:01
Does AM have notification access?

The feature is working on my Pixel 3a XL running A11
Yeas. I set up access for notification.
As a result, I installed an additional application that clicks on the notification. =)