Post

Replies

Boosts

Views

Activity

Reply to Apple HealthKit Integration - Need help with sleep data
Found our issue! We were pulling time in bed instead of time actually asleep. Also, we were not adjusted properly for the timing dynamics between days where a user falls asleep before midnight vs after, and what day that sleep gets logged to. Hence the 15 hours on 7/14 was combining two nights of sleep. 7/15 was 0 hours because that was counted on 7/14 because the user fell asleep ~11pm on 7/14.
Jul ’25
Reply to Apple HealthKit Integration - Need help with sleep data
Found our issue! We were pulling time in bed instead of time actually asleep. Also, we were not adjusted properly for the timing dynamics between days where a user falls asleep before midnight vs after, and what day that sleep gets logged to. Hence the 15 hours on 7/14 was combining two nights of sleep. 7/15 was 0 hours because that was counted on 7/14 because the user fell asleep ~11pm on 7/14.
Replies
Boosts
Views
Activity
Jul ’25
Reply to Apple HealthKit Integration - Need help with sleep data
The Past 3 days in our app showed the below: (7/16)- 7 hours (correct) (7/15) - 0 hours (incorrect, should be 8 hours) (7/14) - 15 hours (incorrect, should be 6 hours) Apple health code
Replies
Boosts
Views
Activity
Jul ’25