Open App Exit Profile to run tasks if App A exits, but not if Apps C or D or F are still running

Discussion in 'Join' started by Preety Sharma, Apr 5, 2020.

  1. Preety Sharma

    Preety Sharma New Member

    Joined:
    Apr 5, 2020
    Messages:
    1
    Likes Received:
    0
    using Tasker with Autoinput

    There is an App A

    Have created a list of tasks linked to a profile, which clear the App A from Recents/Overview screen by autoswiping it up and killing the app. The profile is Application Exit profile for app A.

    Each time I exit the app A, it is successfully cleared from recents and also killed.

    Problem is that when using the App A, in between if a clipboard app is opened or a pdf viewer is opened by the app to view a pdf file present inside the it or I try to share a file from inside the app, then the tasker thinks this as the main app has exited and thus runs the task and thus clears it from recents an kills it.
    So I am unable to use the app fully.

    So I wanted to run the tasks on Exit of App A, only if App B, App C or App D are not running.

    Tried pgrep shell command,but was unsuccessful.

    would really appreciate any advise on this problem.

    thank you in advance
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Use the App Info action which will get info about the currently opened app :)
     
: tasker, shell

Share This Page