fix(fitness): request ACTIVITY_RECOGNITION for cadence

Android step detector silently returns no events on API 29+
when ACTIVITY_RECOGNITION is ungranted, so cadence was always
absent from recorded tracks. Declare the permission, request
it at GPS start, guard sensor registration and retry it from
MainActivity.onRequestPermissionsResult when the user grants
mid-session, and toast a hint if they deny.
This commit is contained in:
2026-04-21 19:16:03 +02:00
parent cf5ac96fc3
commit a056618696
11 changed files with 106 additions and 7 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ dependencies = [
[[package]]
name = "bocken"
version = "0.4.0"
version = "0.5.1"
dependencies = [
"serde",
"serde_json",