AutoNotification Query Google Assistant

Discussion in 'AutoApps' started by rownie23, Oct 18, 2019.

  1. rownie23

    rownie23 New Member

    Joined:
    Oct 18, 2019
    Messages:
    5
    Likes Received:
    0
    Hi there
    I'd like to query Assistant reminders and have a task fire from me pressing the finished button.
    In the AutoNotification query task, the app to query isn't Assistant as you might assume, but Google. As you're probably well aware, the Google App pushes loads of notifications. As I was testing for the reminder, I was pulling in the info for the current weather.
    How can I filter that out and just query the reminder?
    I have a profile event context which can do some of what I need:
    Code (Text):
    Event Behaviour: true
    Notification Type: Only Created Notifications
    Notification App: Google: Handoff
    Package Name: com.google.android.googlequicksearchbox
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Maybe you can filter by title? It should something like "Reminder" there, right?
     
  3. rownie23

    rownie23 New Member

    Joined:
    Oct 18, 2019
    Messages:
    5
    Likes Received:
    0
    Unfortunately not, the title is actually the reminder text, so it will vary for every reminder.

    PROFILE:
    Event
    AutoNotification Intercept
    Event Behaviour: true
    Notification Type: Only Created Notifications
    Notification App: Google
    Package Name: com.google.android.googlequicksearchbox

    TASK:
    AutoNotification Query
    Persistency Type: Non-Persistent Only
    Notification Apps: Google
    Package: com.google.android.googlequicksearchbox
    Get All Fields: True

    The only way I think I can get what I want is to to set the "Any" field of the AutoNotification Query task and use the Google notification category "OPA_HANDOFF". However, when I enter that in there, it doesn't catch it.

    How can I use that field properly? Something to do with regex? That's new to me.
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Hmm, maybe those notifications use a different notification category? Can that be it? If that's the case you can check the variable for it in the task and filter by that.
     
  5. rownie23

    rownie23 New Member

    Joined:
    Oct 18, 2019
    Messages:
    5
    Likes Received:
    0
    In the task, AutoNotification query doesn't seem to have a filter for category type, which is OPA_HANDOFF (or Handoff).
    How can I filter on category?
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Use a Stop action in the task and in the If condition check the category :)
     
  7. rownie23

    rownie23 New Member

    Joined:
    Oct 18, 2019
    Messages:
    5
    Likes Received:
    0
    OK, got it!
    So now I can get the ID of the Google Reminder "Finished" button.
    How can I now make Tasker do what I want when that button is pressed?
    I've looked at the examples of "Thumbs Up on Google Play Music" and "Press a button on a notification as soon as its received", but I can't see how they help me.

    Sorry for all of the questions, I'm usually quite proficient when it comes to Tasker but this one has me stumped! :confused:
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    To be clear, you want to do something in Tasker when you press the button in Google Notification? Unfortunately that's not possible... The most you can do is make Tasker click that button...
     
  9. rownie23

    rownie23 New Member

    Joined:
    Oct 18, 2019
    Messages:
    5
    Likes Received:
    0
    Right, I get it now - that's why I've been finding it so difficult to do what I want! :oops:

    Thank you for your help with this though, I've learned some things along the way.
     

Share This Page