AutoNotification can't intercept notification buttons for SMS Organizer and Single Whatsapp notification
I have a profile that executes some task when notification is cancelled.
When i cancel a group of notification in whatsapp it doesn't execute task for last notification also doesn't execute task for single notification. On testing i discovered the button text variable isn't also set for the given condition.
For SMS Organizer although the button text is set but the button action isn't performed.
Profile description:
Profile: Mark Chats As Read (19)
Event: AutoNotification Intercept [ Configuration:Event Behaviour: true
Cancel Reason: User cancelled,User cancelled all,Other app cancelled,Other app cancelled all
Notification Apps: WhatsApp,SMS Organizer,Telegram,Messaging ]
Enter: Anon (28)
Run Both Together
<Convert title text to lower case>
A1: Variable Convert [ Name:%antitle Function:To Lower Case Store Result In: ]
<For a redundant group>
A2: If [ %anstatus ~ Created & %antitle ~R back to school ]
<Mark chat as read when text comes>
A3: AutoNotification Actions [ Configuration:Notification Apps: WhatsApp
Button Text: read (regex) (case ins)
Notification Title: back to school (regex) (case ins) Timeout (Seconds):20 ]
<On cancelling notification>
A4: Else If [ %anstatus ~ Cancelled & %antitle !~R back to school ]
<Search for button with read functionality>
A5: AutoTools Text [ Configuration:Text: Mark as read
Best Match: %anbutton1text,%anbutton2text,%anbutton3text,%anbutton4text,%anbutton5text
Joiner Variable: atjoinedtext
Separator: , Timeout (Seconds):60 ]
<If first text matched>
A6: If [ %atbestmatchesindexes(1) ~ 1 ]
<Execute first action>
A7: AutoNotification Actions [ Configuration:Intercept Action ID: %anbutton1action Timeout (Seconds):0 ]
<If second text matched>
A8: Else If [ %atbestmatchesindexes(1) ~ 2 ]
<Execute second action>
A9: AutoNotification Actions [ Configuration:Intercept Action ID: %anbutton2action Timeout (Seconds):0 ]
<If third text matched>
A10: Else If [ %atbestmatchesindexes(1) ~ 3 ]
<Execute third action>
A11: AutoNotification Actions [ Configuration:Intercept Action ID: %anbutton3action Timeout (Seconds):0 ]
<If fourth text matched>
A12: Else If [ %atbestmatchesindexes(1) ~ 4 ]
<Execute fourth action>
A13: AutoNotification Actions [ Configuration:Intercept Action ID: %anbutton4action Timeout (Seconds):0 ]
<If fifth text matched>
A14: Else If [ %atbestmatchesindexes(1) ~ 5 ]
<Execute fifth action>
A15: AutoNotification Actions [ Configuration:Intercept Action ID: %anbutton5action Timeout (Seconds):0 ]
<Exit upon marking chats as read>
A16: End If
<Inform marking chats as read>
A17: Flash [ Text:Marked as read
%atbestmatches()
%ancancelreasontext Long:Off ]
<Exit task>
A18: End If
Also attached xml to import.