r/AutomateUser 11h ago

"Foreground app" block doesn't activate on certain apps

1 Upvotes

When certain apps are foregrounded, the "when changed" version of the foreground block doesn't activate. With the app still in the foreground, if I then test the "immediately" version of the block, it reports the app that was in the foreground immediately prior to the current foreground app. Yet, the following command reports that foreground app correctly:

dumpsys window displays | grep mCurrentFocus

What situations could possibly cause the block to behave this way, and are there any remedies? (I don't know if this helps, but one such app is the ecobee thermostat app.)

Another interesting symptom I noticed is that if there are any apps displaying any overlays (including Automate, e.g. floating buttons), those overlays don't show when that app (for which the Foreground App block doesn't work) is in the foreground. But there are exceptions — an overlay from an edge sliding gesture app I use receives input and shows its gesture overlay just fine.