Sample Header Ad - 728x90

Macrodroid: Handling notification

0 votes
1 answer
586 views
I have a macro which sets a notification. This notification should invoke a macro upon clicking. That macro should have the text of the notification available to it for further processing. The first image is the macro which creates the notification. Macro name =
test macro 1.1
Image It's notification handler is shown in the second image. Image This notification displays a text
: test2
. It invokes a macro
test macro 1.2
. As you can see, it tries to use the built-in variable
{notification}
, but it didn't work. Image How do I make the text
: test2
available to macro1.2 when it is invoked by the notification? EDIT :: The above is only a MWE. The first macro will be triggered by messages, GeoFence, location, cell connection, wifi or even other notification sent via HTTP. The notification sent by this macro will display something about the trigger and other information which is dynamic and differ from notification to notification. By the time any notification is clicked, several newer notification might already be displayed. The action undertaken by this click should be specific to only the current notification being handled. This is why a global variable will not work. Any help would be greatly appreciated
Asked by magguu (101 rep)
Jan 24, 2024, 12:44 PM
Last activity: Jul 18, 2024, 09:55 AM