How to force dismiss notifications from your watch that don't dismiss automatically [Tasker]
9:11 PMI made a recent post about notifications from certain apps not dismissing properly from my phone when dismissed from my watch. It got a few upvotes but no solution, so I made my own workaround using Tasker and AutoNotification and thought I would share. Just an FYI, both of these apps are paid (this particular setup requires the in-app paid upgrade of AutoNotification).
The idea was to create a second notification when I receive a notification from a troublesome app that when cleared, dismisses all notifications from that app. So on my watch, I will just have to swipe a second notification away to dismiss the real notifications from my phone.
These are the two profiles you will need:
Profile: Notification Received (119) Event: AutoNotification Intercept [ Configuration:Event Behaviour: true Notification Type: Only Created Notifications Persistency Type: Non-Perstistent Only Notification Apps: WhatsApp,Clash of Clans ] State: Display State [ Is:Off ] Enter: Anon (120) A1: Variable Set [ Name:%thepackage To:%anpackage Do Maths:Off Append:Off ] A2: Variable Set [ Name:%theapp To:%anapp Do Maths:Off Append:Off ] A3: AutoNotification Query [ Configuration:App Name: AutoNotification Text: %theapp Package:com.joaomgcd.autonotification Name:AutoNotification Query Timeout (Seconds):20 ] A4: AutoNotification [ Configuration:Title: Clear notifications Text: Swipe to dismiss %theapp Action on Dismiss: clearnote %thepackage=:= Package:com.joaomgcd.autonotification Name:AutoNotification Timeout (Seconds):0 ] If [ %anid1 !Set ] Profile: Clear Notifications (117) Event: AutoNotification [ Configuration:Event Behaviour Filter: clearnote ] Enter: Anon (118) A1: AutoNotification Query [ Configuration:Package: %anpar2 Package:com.joaomgcd.autonotification Name:AutoNotification Query Timeout (Seconds):20 ] A2: For [ Variable:%theid Items:%anid() ] A3: AutoNotification Cancel [ Configuration:Other Id: %theid Package: %anpar2 Package:com.joaomgcd.autonotification Name:AutoNotification Cancel Timeout (Seconds):0 ] A4: End For
Here are the two profile xml files that you can import directly into Tasker to use: Notification Received, Clear Notifications. Once you import them, you can edit the AutoNotification Intercept event (make sure you have intercept enabled in the Android notification settings) to intercept notifications from all apps you want to be able to force dismiss. I have it set to Clash of Clans and WhatsApp.
Hope that helps someone else too at least until Google updates Android Wear or developers update their apps (not sure whose fault this is). Let me know if you have questions or ideas for improvement!
submitted by JustRollWithIt
[link] [comment] From Android Wear - How to force dismiss notifications from your watch that don't dismiss automatically [Tasker]
