Open BharathMarla932 opened 2 months ago
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 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); });