android / android/health-samples
Google Fit Missing One Step When Crossing Two Dates
- Dominant language
- Kotlin
- Stars
- 346
- Forks
- 183
- PR merge metrics
- No merged PRs in 30d
Description
I am syncing Google Fit with Health Connect and retrieving daily step counts for the current month. However, I am encountering an issue where steps crossing two dates are missing one step.
Example:
- On 7/28 at 11:55 PM to 7/29 at 12:25 AM, I walked a total of 10 steps.
- Google Fit distributes the steps as follows:
- 1 step on 7/28
- 8 steps on 7/29
As a result, one step is missing. :smiling_face_with_tear:
Does anyone know how to resolve this issue?
Thanks!
### View daily step counts for 7/28 and 7/29
Note: However, when switching tabs in Google Fit, the step count for 7/28 sometimes shows 2 steps and other times shows 1 step.
### View step counts for the entire month
### View step counts for this week
Contributor guide
Research direction
No repository files, tests, or entry points are mentioned. Start by locating the daily step-count retrieval for the Google Fit and Health Connect sync, then reproduce the date-boundary case; done means the missing-step behavior is explained or corrected and covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100