ActivityWatch / aw-android

ActivityWatch for Android, using aw-server-rust as backend.
Mozilla Public License 2.0
165 stars 29 forks source link

Chrome Watcher Functionality Lost #105

Closed tlcameron3 closed 9 months ago

tlcameron3 commented 9 months ago

Recently the Chrome watcher has stopped collecting data; my last datapoint is from 23 days ago. I am running Android 13. I wonder if this is due to some accessibility permission problem, as I have had that with other apps (Macrodroid), but ActivityWatch never asked for such permissions in the first place. I troubleshot, allowing ActivityWatch unrestricted battery usage, etc, and there was still no pull to the bucket. Was surprised the Chrome watcher worked in the first place, because I tried to get it running on the app before and it didn't seem to work; guess it was working in the background. No other app has this functionality for Android that I know of, so this service is very useful. However, it may be difficult (if related to accessibility) as Google further limits accessibility access on Android.

ErikBjare commented 9 months ago

Thanks for the report!

The Chrome watcher is in an early stage if development. Bugs like this are somewhat expected at this stage, but let's see what goes wrong.

I think you need to give ActivityWatch the Accessibility permission for it to work (given it uses onAccessibilityEvent). It's possible your device removed it for some reason.

tlcameron3 commented 9 months ago

Magically, functionality is restored. Thank you!

ErikBjare commented 9 months ago

Was it the Accessibility permission? Or did it just randomly start working again?

tlcameron3 commented 9 months ago

Yes it was