{Notification_text} error

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

{Notification_text} error

Post by Rafi4 » 02 Oct 2019 04:58

Hi
I think I am facing a new problem with trigger notification on Statusbar displayed.
Details: trigger notification on Statusbar displayed
App name= com.google.android.keep
Action:script :addElement(global_test_list,0,notification_text);

Issue = elements was adding to the list 2 to 3 times.
For example = notification_text is "Automagic is awesome". After saving the elements the list is as below.

global_test_list
0= Automagic is awesome
1= Automagic is awesome
2 = Automagic is awesome.

I have already tried script as Martin's "multiclipboard flow". But no use
Please solve this.

from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: {Notification_text} error

Post by Desmanto » 03 Oct 2019 17:38

AFAIK, the behaviour happens because of notification grouping. It usually happens consecutively and so fast that you don't see it. You can catch only the first notification by changing the execution policy to skip and use sleep 1 seconds after the script. This will ensure it will only react to the first notification and skip the following consecutive ones.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply