I don't know what can be a reason here but getSteps is working fine and I'm getting steps from start to end date but not in case I try to get sleep analysis , any idea what can be a reason ?
let dateSleep =
{startDate: '2020-04-01', endDate:'2021-04-19' };
Fitness.getSleepAnalysis(dateSleep)
.then((records) => {
console.log("here came",records)
//console.log("here",Fitness.SleepAnalysis.records)
// Do something
})
.catch((error) => {
console.log("here",error)
// Do something
});
}
I don't know what can be a reason here but getSteps is working fine and I'm getting steps from start to end date but not in case I try to get sleep analysis , any idea what can be a reason ?