You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The getDailyCalorieSamples method is returning incorrect calorie data for the current day. The value returned by the method is significantly lower than the value displayed in the Google Fit app.
The getDailyCalorieSamples method is returning incorrect calorie data for the current day. The value returned by the method is significantly lower than the value displayed in the Google Fit app.
Here is my code :
const opt = {
startDate: "2024-07-24T00:00:00.000Z",
endDate: new Date().toISOString(),
bucketUnit: BucketUnit.DAY,
};
GoogleFit.getDailyCalorieSamples(opt)
.then((res) => {
console.log(res);
})
.catch((error) => {
console.error('Error retrieving calorie samples:', error);
});
The text was updated successfully, but these errors were encountered: