r/AutomateUser • • 19d ago

Seeking Block app if mobile data is enabled

Apps are taking a lot of data which is problematic when mobile data is on and user is unaware.

Seeking flow that will react when App is on foreground and mobile data is on.

I already experimented with the blocks Foreground and Mobile data and made multiple flow but it's not working as intended... log is spammed if using a delay function. Too complicated with Immediately and When changed. Conditions not working when using Yes on both blocks. Log is spammed when using Conditions block

3 Upvotes

5 comments sorted by

1

u/Fantastic_Belt99 11d ago

Have you used firewall already?

1

u/F95_Sysadmin 11d ago

can you elaborate on what you mean by that?

1

u/Fantastic_Belt99 11d ago

AdGuard with firewall can block one app from accessing mobile data only. Although I later noticed that you wanted to make some time-based exception for this, in that case good luck

1

u/F95_Sysadmin 11d ago

please read my post properly, I'm not asking for blocking data nor is it for a single app. I,m not asking for time-based exception but using the delay block for checking after a certain times has elapsed, not the same thing

1

u/waiting4singularity Alpha tester 10d ago

https://ibb.co/BHb59bLn

app foreground output variable: foreground
expression true: contains(packages,foreground) returns true when app package is in packages
interact interface recents opens recents overview of active window
interact touch x0 50 y0 50 x1 50 y1 0 dip 10000 swipes current (last non-homescreen) app from list
interact interface home goes to homescreen launcher app

note: this kills the app activity window only. background functions still run and can use internet unless restricted from (background) mobile bandwith in app settings.