Skip to content

Fitness.getSleepAnalysis(dateSleep) returns empty array #99

Description

@patriksharma

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
        });
      }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions