Page 1 of 1
Trigger when a specific application goes on background?
Posted: 01 Aug 2016 11:54
by wfrcrd
How can I do it?
Thank you , again

Re: Trigger when a specific application goes on background?
Posted: 01 Aug 2016 17:49
by MURTUMA
App Task Ended should probably work.
Re: Trigger when a specific application goes on background?
Posted: 01 Aug 2016 19:20
by wfrcrd
MURTUMA wrote:App Task Ended should probably work.
Unfortunately don't work to me because the app stays in background (and it should),
I hope there was something concerning the UI or the User activity or something like that if I switch one app to the background.
Or at least something who can tell if the app is "alive" or not: I already asked about that,
and the answer is that is no sistem trigger about that, but..
when the ram manager shows the list of the alive apps , what action they do ?
If we coulkd make the same action and store the result in a file list we copudl check in the app we are looking for
is in the list or not.
(sorry for my bad english I hope you understand it)
thank you
Re: Trigger when a specific application goes on background?
Posted: 01 Aug 2016 19:29
by MURTUMA
Did you try it? It works with most apps when their UI is closed either by closing the app or pressing home button(foreground app goes into background). Still, it might not work in all instances.
What is your use case and how the app goes into background?
Re: Trigger when a specific application goes on background?
Posted: 01 Aug 2016 20:06
by wfrcrd
MURTUMA wrote:Did you try it? It works with most apps when their UI is closed either by closing the app or pressing home button(foreground app goes into background). Still, it might not work in all instances.
What is your use case and how the app goes into background?
Yes I tried, well...
the thing that I can say is : after the condition (app in background) the flow perform an action , and that action is not performed
My intent is to mute the volume notification when one specified app is in the foreground and set it back to normal state when it goes on the background.
Re: Trigger when a specific application goes on background?
Posted: 02 Aug 2016 08:07
by wfrcrd
SORRY SORRY !!
it works like a charm, it was my mistake ( I made a logical mistake in the flow) as usual.
The purpouse was to mute the notification while i'm using the browser, the problem is to put back the notification value to the original value:
I stored the initial value and then put it to 0, but everytime I perform the triggered action with the browser already alive the flow restarts
so the original value and the current one are always 0. (wrong!)
The thing that I need to do now is to check those value when the flow ended.
One good way to me is the popup "show volume level" (or something like that) but I can show it only if I SET the value,
but I just need to see, to check if the value is correct or not .
So... it's possibile to popup those "volume level" without to set it before ( or to set it with the INITIAL value ) ?
Thanks a lot and sorry!
Re: Trigger when a specific application goes on background?
Posted: 02 Aug 2016 14:26
by MURTUMA
Something like this would work.
FLOW 1
Trigger: App Task Started
Action: Store Audio Volumes (This action saves the current volume level to the related variable. You can uncheck everything else except the notification. Note the variable name; it starts with "global_". This part is important but the rest can be anything.)
Action: Set Audio Volume
FLOW 2
Trigger: App Task Ended
Action: Restore Audio Volumes (Again, uncheck everything else but notification. Use the same variable here that you used to store the value. It would be easiest, if you just leave the names as is in both actions.
Re: Trigger when a specific application goes on background?
Posted: 03 Aug 2016 08:41
by wfrcrd
MURTUMA wrote:Something like this would work.
FLOW 1
Trigger: App Task Started
Action: Store Audio Volumes (This action saves the current volume level to the related variable. You can uncheck everything else except the notification. Note the variable name; it starts with "global_". This part is important but the rest can be anything.)
Action: Set Audio Volume
FLOW 2
Trigger: App Task Ended
Action: Restore Audio Volumes (Again, uncheck everything else but notification. Use the same variable here that you used to store the value. It would be easiest, if you just leave the names as is in both actions.
yes it work this way when I push the "menu" button the application perform a "task ended" ,
Thank you !!!