ActivityWatch / aw-android

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

Activity not tracking. Showing `Unknown` #99

Closed hkchakladar closed 11 months ago

hkchakladar commented 12 months ago

Showing Unknown. See screenshot. Screenshot_20231006-004720_ActivityWatch

ErikBjare commented 11 months ago

I discovered this too, for some reason it can't get the app names anymore.

I did some investigating trying to hunt down the core issue, but I couldn't figure it out.

Here's the code:

https://github.com/ActivityWatch/aw-android/blob/0f095203f25b7036d12ad49720a2dd3dd5afab37/mobile/src/main/java/net/activitywatch/android/models/Event.kt#L13-L20

Made a release v0.12.1b3, which at least includes the package name, such that it should at least say, for example, Unknown (com.twitter.android).

ErikBjare commented 11 months ago

It seems this is the solution: https://stackoverflow.com/a/62345806/965332

Working on it.

Edit: release v0.12.1b4 with fix now building in https://github.com/ActivityWatch/aw-android/actions/runs/6505940603

ErikBjare commented 11 months ago

Fixed in https://github.com/ActivityWatch/aw-android/commit/9fca409b48c1a9b9d1f292fb16400e7c54aac26d