KieronQuinn / TapTap

Port of the double tap on back of device feature from Android 12 to any Android 7.0+ device
GNU General Public License v3.0
3.49k stars 204 forks source link

Tasker event not triggered #535

Closed pierremont closed 2 years ago

pierremont commented 2 years ago

Hi! I'm a big fan of your app, I think it's a wonderful idea Alas I couldn't set it up to trigger the TAsker event, maybe I'm doing something wrong?

I've set up Tap Tap (1.4) in the Double Tap Actions setting to be Tasker event, but it doesn't seem to trigger Tasker within tasker I've created a simple profile with a context Double Tapped Back that just flashes "ok" on the screen I know Tap tap is reacting because i feel a feedback tap right after my double taps. Also, if I choose a specific task for Double Tap action instead a Tasker event - it works

Thank you

KieronQuinn commented 2 years ago

Unable to reproduce

image image

This works fine for me.

pierremont commented 2 years ago

which phone model are you using? I'm using a Pixel 5, just as the Tasker developer's

I've used Tasker for about 5 years, actively developing tasks, so there must be something there. Maybe a missing permission through ADB?

pierremont commented 2 years ago

i've now let only the Flashlight action for Double Tap, the one from your screenshot - and it doesn't trigger the flashlight alone either there is a tap back, though, so it reacts, somehow so far, the only way to use it is to configure an actual Tasker task in there.

Can Tap Tap log its actions in a file?

KieronQuinn commented 2 years ago

Have you got the draw over other apps permission enabled?

pierremont commented 2 years ago

yes, sir

image

pierremont commented 2 years ago

using Tasker logcat event I've managed to capture system logs when TapTap was supposed to trigger there's an interesting event there from taptap As you can see it's trying to trigger a Tasker Task called com.local.petrus.aimp_rewind_tasker. The problem is that i used that task before in TapTap, but it's no longer set up in there

it seems that TapTap doesn't forget that old setting, for some reason. Now in Double Tap Action it's set up Tasker event I've cleared the storage and cache for TapTap, but it's doing the same. I don't know where it stores that old setting...

WhatsApp Image 2022-08-17 at 3 11 01 PM

KieronQuinn commented 2 years ago

The first item in that log is it being blocked from starting a service in the background - make sure you have disabled battery optimisation for both Tap, Tap and Tasker.

As for it using the wrong tasker task, that is handled by Tasker if you are using the Tasker Event action. Only the Tasker Task action fires specific actions.

pierremont commented 2 years ago

the battery optimisation is stopped completely on my phone, and I'm using the phone right now, it couldn't intervene anyway

I don't mean to question anything, but are you sure Tasker is triggering the specific task? In the first event - the one which is blocked - it says "RequestedQuery from ... package taptap" and it references the wrong task

thank you

KieronQuinn commented 2 years ago

Yes, the Tasker Event action was implemented by the Tasker developer and has worked fine since then.

pierremont commented 2 years ago

Then I guess that's it thank you