System Setting Change trigger does not work with foreground app name

Shajirr

New member
Phone is Samsung Galaxy S10e
MacroDroid version is whatever the latest on Playstore

If I set System Setting Change trigger to monitor the foreground app name changes via {fg_app_name}, the trigger never fires.
Not even once.

If I read the {fg_app_name} variable myself, its always returned correct, it does change when foreground app changes.
So its just the trigger that's not working.

Same thing with foreground app package, also doesn't work.
 

Shajirr

New member
{fg_app_name} is magic text and not a system setting, so it will not fire in the system setting change trigger.
Well its in the list of what I can select for this trigger.
How do I know then what from that list will work and what won't work?

Basically I wanted to fire a trigger when foreground app changes, how do I do it then without making it just a timer that checks {fg_app_name}
 

Endercraft

Moderator (& bug finder :D)
Well its in the list of what I can select for this trigger.
How do I know then what from that list will work and what won't work?

Basically I wanted to fire a trigger when foreground app changes, how do I do it then without making it just a timer that checks {fg_app_name}
That's the list of magic texts so you can use different keys dynamically, use the system setting action to find out available keys.
 

Dm114

Well-known member
Well its in the list of what I can select for this trigger.
How do I know then what from that list will work and what won't work?

Basically I wanted to fire a trigger when foreground app changes, how do I do it then without making it just a timer that checks {fg_app_name}
You can achieve that very easily. When foreground app changes, store new one's name in a string variable and use this content change as a Trigger!
 

MacroDroidDev

Administrator
Staff member
The {fg_app_name} should work anywhere it's used but it does require the standard MacroDroid accessibility service to be enabled for it to work. Do you have this enabled?
 
Top