Notification Interact is working only when Automate is active

51 views
Skip to first unread message

Hannu

unread,
May 29, 2020, 3:23:43 AM5/29/20
to Automate
Hi,
Seems that Notification Interact works only when Automate is open in screen.

When I'm watching flow log and notification comes then Notification Posted finds notification and Notification Interact is performing action and notification disappears with action performed. Works as designed.

But if Automate is not open application in screen (running in background) I can find same entries from Log (Notification posted?, Notification interact) but actual notification action is not performed and notification remains.

Rooted Android 10, Flow has "access notifications and Do Not Disturb settings". Automate version 1.23.1 (Premium).

Any ideas what could be the issue.

br,
Hannu

Henrik "The Developer" Lindqvist

unread,
May 29, 2020, 3:45:14 AM5/29/20
to Automate

hannu.k...@gmail.com

unread,
May 29, 2020, 4:00:19 AM5/29/20
to Automate
Anything specific in there?
I have another flow which works fine in background. That flow is enabling wifi hotspot when connected to car bluetooth.
And this flow is running in background. At least it is writing log entries also in background. It just doesn't perform action for notification.

Is there some difference interacting with notifications and enable/disable hotspot in background?

Henrik "The Developer" Lindqvist

unread,
May 29, 2020, 1:27:59 PM5/29/20
to Automate
Look at the log timestamps to ensure the "actions" aren't just all done when the Automate is brought to the foreground.
The notification listener, and interacting with notifications, should work, as any action, even when the app in the background.

Is it the notification posted/interact or hotspot blocks that's "delayed" ?

Hannu

unread,
May 29, 2020, 2:21:11 PM5/29/20
to Automate
As far as I can tell those actions in log are having correct timestamp. But I will double check it (next week).

Car hotspot flow is based on this:
I have just remove 50% of the blocks which I don't need.

My Notification Flow is very simple:
1. begin
2. When Notification 'com.....' is posted, sets ID
3. Log: "Notification found"
4. Is in time window "office hours"?
5. If yes, Log: "Business Hours" or if no, Log: "Out of business hours" (and goto 2)
6. Action notifications, ID, Secondary
7. Delay 5s and goto 2.
Steps 3, 4 and 5 would be optional.

So both are having block which will wait something to happen (BT connected, notification posted).

hannu.k...@gmail.com

unread,
Jun 1, 2020, 10:10:26 AM6/1/20
to Automate
Yes. Timestamps are in log at correct time. So Automate is trying to interact with notification in background but failing.
Even if I have phone screen open (Automate in background) nothing happens. But if Automate is in foreground then it will take action on notification.

Is there anything which would help to identify what would be the problem?

Henrik "The Developer" Lindqvist

unread,
Jun 1, 2020, 2:34:40 PM6/1/20
to Automate
Sadly not. Automate doesn't do anything differently if it's in the background vs foreground, so it must be a device issue.
Reply all
Reply to author
Forward
0 new messages