Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Unable to fetch SLEEP data #55

Open
isthar opened this issue Jul 8, 2020 · 1 comment
Open

Unable to fetch SLEEP data #55

isthar opened this issue Jul 8, 2020 · 1 comment

Comments

@isthar
Copy link

isthar commented Jul 8, 2020

I am trying to fetch sleep data on iOS 13+ device without success - I am receiving empty list regardless date range being used.

final sleepCount = await FitKit.read(
DataType.SLEEP,
dateFrom: _startDate,
dateTo: _endDate,
);

Permissions are granted upon first run. It does work for DataType.STEP_COUNT

@krokyze
Copy link
Owner

krokyze commented Jul 19, 2020

Not sure what could lead to this. Do you have any sleepAnalysis data in HealthKit?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants