AutoNotification Detect notification channel

Discussion in 'AutoApps' started by scae, Jan 29, 2019.

  1. scae

    scae New Member

    Joined:
    Feb 20, 2017
    Messages:
    13
    Likes Received:
    0
    Hi, is there a way to return the notification channel with autonotification (or tasker)? I'm trying to detect when Chrome's Media channel notifications appear.

    Also, is there a way to detect the exact icon? In the media notification the pause/play button returns %anbutton2text as 'pause', regardless as to whether the icon is play or pause.

    Thanks for any help.
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,732
    Likes Received:
    739
    Hi. Yes, you can use the %categoryid variable available in the latest beta :)

    About the icon, check %anbutton2icon
    Hope this helps!
     
  3. scae

    scae New Member

    Joined:
    Feb 20, 2017
    Messages:
    13
    Likes Received:
    0
    Perfect, thanks!
     
  4. scae

    scae New Member

    Joined:
    Feb 20, 2017
    Messages:
    13
    Likes Received:
    0
    edit: it is %ancategoryid.

    For some reason when I update the task linked to the autonotification intercept profile it still runs the old version of the task. Any ideas why?
    Edit: working now! Had to back out of tasker for things to save

    Also, %anbutton2icon works, but it returns the same icon for both pause and play. Does that seem correct?

    The icon returned is
    file:///storage/emulated/0/Android/data/com.joaomgcd.autonotification/files/com.android.chrome_-1803146057
     
    Last edited: Jan 30, 2019
  5. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,732
    Likes Received:
    739
    Did you actually visualize the image of the icon? :) Maybe it's on the same path but it's different?
     
  6. scae

    scae New Member

    Joined:
    Feb 20, 2017
    Messages:
    13
    Likes Received:
    0
    No I didn't, I'm not sure how. Can you explain? If I do visualize the icon can I get tasker to act on any changes? I was planning something like 'if icon path = X then do Y'
     
  7. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,732
    Likes Received:
    739
    Maybe you can try checking the md5 for the file :) Each one will have a unique md5!
    Check out how to calculate md5 here for example.
     
  8. scae

    scae New Member

    Joined:
    Feb 20, 2017
    Messages:
    13
    Likes Received:
    0
    Interesting, I'll try that thanks
     

Share This Page