Open isthar opened 4 years ago
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
Not sure what could lead to this. Do you have any sleepAnalysis data in HealthKit?
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