Perform Action on Notification on Statusbar (Not Working)

General discussions about Automagic and automation in general

Moderator: Martin

User avatar
Mardaunt
Posts: 10
Joined: 09 May 2021 17:25

Perform Action on Notification on Statusbar (Not Working)

Post by Mardaunt » 16 May 2021 21:25

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

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

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

Post by Wibbly » 17 May 2021 07:40

The the text on the button exactly the same as the text in the action to press the button?

User avatar
Mardaunt
Posts: 10
Joined: 09 May 2021 17:25

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

Post by Mardaunt » 17 May 2021 13:01

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.

User avatar
Mardaunt
Posts: 10
Joined: 09 May 2021 17:25

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

Post by Mardaunt » 17 May 2021 13:10

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?

User avatar
Mardaunt
Posts: 10
Joined: 09 May 2021 17:25

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

Post by Mardaunt » 17 May 2021 19:01

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 =(

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

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

Post by Wibbly » 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.

User avatar
Mardaunt
Posts: 10
Joined: 09 May 2021 17:25

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

Post by Mardaunt » 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.

User avatar
Mardaunt
Posts: 10
Joined: 09 May 2021 17:25

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

Post by Mardaunt » 19 May 2021 16:54

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.

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

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

Post by Wibbly » 22 May 2021 11:01

Does AM have notification access?

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

User avatar
Mardaunt
Posts: 10
Joined: 09 May 2021 17:25

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

Post by Mardaunt » 02 Jun 2021 10:47

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. =)

Post Reply