Dismiss Any App's Notification With Shake

Clear a notification from any 3rd party app by simply shaking your wear device

  1. joaomgcd
    (i) This tutorial will teach you how to dismiss a notification from any app with a shake of your wrist. You'll have 10 seconds do so after you receive the notification. After that it will re-enable the default VoiceOnShake voice screen that is created in the AutoWear Setup Wizard.

    STEP 1 - WHEN YOU RECEIVE A NOTIFICATION


    • Setup a new Tasker profile with an "AutoNotification Intercept" condition
    • Make it only intercept created notifications that are not persistent
    • Create a new task


    STEP 2 - DISABLE VOICE SCREEN AND TURN SCREEN ON


    • Add an "AutoWear App" action
    • Under "Action" choose "Disable"
    • In the "AutoWear Element Name" field write "VoiceOnShake"
    (i) This will disable the voice screen that was created in the AutoWear setup wizard. This allows you to shake your watch without making the screen show up. Replace "VoiceOnShake" with the name of any other element you might have showing on shake. Or ignore this if nothing happens on shake for you
    • Enable the option to "Turn on screen"


    STEP 3 - KEEP SCREEN ON


    • Add an "AutoWear Settings" action
    • Enable the option to Turn On Screen
    (i) This will keep your screen on for as long as you can dismiss the notification for


    STEP 4 - SET VARIABLES


    (i) You'll now store some variables that you can use in the Task that will dismiss the notification on shake. These are the needed variables to dismiss a notification

    • Set %LASTID to %anid
    • Set %LASTPACKAGE to %anpackage
    • Set %LASTTAG to %antag


    STEP 5 - WAIT AND ENABLE VOICE AGAIN


    (i) We're now going to wait 10 seconds before we enable the voice screen again and disable the "keep screen on" setting

    • Add a 10 second wait action
    • Add an "AutoWear App" action
    • Inside that, choose the "Enable" action
    • In the AutoWear Element Name field write "VoiceOnShake"
    • Add an "AutoWear Settings" action
    • In the "Keep screen on" option, select "Disable"


    STEP 6 - CLEAR %LASTID


    (i) Clearing %LASTID will allow the next profile we create (the one that will clear the notification) to not trigger. This means that you can only dismiss notifications with shake for 10 seconds.

    • Add a "Variable Clear" action
    • In the "Name" field write %LASTID


    STEP 7 - DISMISS NOTIFICATION PROFILE


    • Create a new Tasker profile
    • Set the condition to "AutoWear Command"
    • Select the "Shake" event
    • In the task do a flash just so you know it's working
    • Go back to the profile in Tasker and add another condition
    • Choose State->Variables->Variable Value
    • Set the condition %LASTID Is set
    (i) This will make this profile trigger only if the %LASTID variable is set. That's why this profile will only trigger for 10 seconds after you receive a notification: because you clear %LASTID after 10 seconds
    • Go back to the task


    STEP 8 - SET CLEAR NOTIFICATION VARIABLES


    (i) You could use %LASTID, %LASTPACKAGE and %LASTTAG directly, but this way will make the variables show up in AutoNotification, making it easier (and less error prone) to use them

    • Set variable %anid to %LASTID
    • Set variable %anpackage to %LASTPACKAGE
    • Set variable %antag to %LASTTAG


    STEP 9 - NOTIFICATION CANCEL


    • Add an "AutoNotification Cancel" action
    • use the 3 variables above in their appropriate places by touching the tag icon like in the video


    (i) Now if you receive a notification (you can create one with AutoNotification to test it out) your watch's screen will turn on and you'll have 10 seconds to dismiss it by shaking your wrist.