Solved Check if a notification is active and perform a task

Discussion in 'AutoNotification' started by sretlow, Sep 26, 2017.

  1. sretlow

    sretlow New Member

    Joined:
    Aug 29, 2017
    Messages:
    21
    Likes Received:
    1
    As soon as I get in my car the phone makes a connection to my bluetooth carkit. What I would like is that as soon as the connevction is made Autonotification checks if the parkmobilenotification (with specific %antitle or %antext" whick I can use) is on the notificationbar. If this is the case I would like to perform a task (open parkmobile app).
    I can create an Profile with event state "BT Connected" and create a task to open Parkmobile. But how to check if there is a parkmobilenotification on the bar? Any solutions?
     
  2. Bulsara

    Bulsara New Member

    Joined:
    Aug 13, 2017
    Messages:
    1
    Likes Received:
    0
    This exactly what im looking to do as well but no luck yet.
     
  3. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    4,913
    Likes Received:
    440
    Use the AutoNotification Query action :)
     
  4. sretlow

    sretlow New Member

    Joined:
    Aug 29, 2017
    Messages:
    21
    Likes Received:
    1
    Could you elaborate this a bit?
    If notification exist perform task a; if notification not exist "do nothing". This is what I would like to achieve
     
    Last edited: Oct 11, 2017
  5. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    4,913
    Likes Received:
    440
    Did you try the AutoNotification Query action?
    Use that and then check if for example %antitle1 exists. If it does, that means that at least 1 notification that matches your input exists :)
     
  6. sretlow

    sretlow New Member

    Joined:
    Aug 29, 2017
    Messages:
    21
    Likes Received:
    1
    Yes but I don't understand how this works at all. Are there examples how to do this? How to perform a task only if a certain notification is on the notification bar. I did search youtube on "auto notification query" but found nothing useful.
    What I did: I made a Profile which opens a Task (Lets say "Parkmobile running") at the moment the BT is connected. The task "Parkmobile running" is having at step 1: Autonotification query (with App "Parkmobile"). So all Parkmobile notifications triggers autonotification. But then???
     
  7. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    4,913
    Likes Received:
    440
    Oh if you want to trigger a task if a notification is posted check this example.

    Hope this helps
     
  8. sretlow

    sretlow New Member

    Joined:
    Aug 29, 2017
    Messages:
    21
    Likes Received:
    1
    No, I want to trigger a task only if a certain notification is already present. So if I connect to Bluetooth then Tasker has to check if a notification is present and if it is present then perform another task.
     
  9. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    4,913
    Likes Received:
    440
  10. sretlow

    sretlow New Member

    Joined:
    Aug 29, 2017
    Messages:
    21
    Likes Received:
    1
    I think I know what you mean:

    I now have a profile which starts the task "Is Parkmobile running" after BT is connected. The task itself contains:
    -Autonotification Query with App Parkmobile
    -If %anapp(1) is set then launch Parkmobile.
    -Else: do noting
    So if I am parking (and paying) with a connection of my cars bluetooth I will get a warning and the task opens the app so I can stop the parking action.
    This Profile would even be better if I could add a state that I have to drive >10km/h or so.
     
    Last edited: Oct 12, 2017
  11. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    4,913
    Likes Received:
    440
    Yep, that's it!! :)
     

Share This Page