Closed shraddha242 closed 10 months ago
getDailyDistanceSamples() API gives empty array. Using the below OPT: const opt = { startDate: moment(startDate).startOf('D'), // required ISO8601Timestamp endDate: new Date().toISOString(), configs: { bucketTime: 1, bucketUnit: 'MINUTE', }, };
Hey, the solution for this is to get permissions for the android.permission.ACTIVITY_RECOGNITION and android.permission.ACCESS_FINE_LOCATION before calling this function. I hope this helps ;)
getDailyDistanceSamples() API gives empty array. Using the below OPT: const opt = { startDate: moment(startDate).startOf('D'), // required ISO8601Timestamp endDate: new Date().toISOString(), configs: { bucketTime: 1, bucketUnit: 'MINUTE', }, };