Hi,
We’re currently using the Health and Fitness plugin in our app to track users' step counts on a daily, weekly, and monthly basis. However, we’ve observed that the monthly step count returned by the plugin doesn’t align with the total steps recorded in Health Connect when we manually verify the data.
Are we missing something here? We've implemented the functionality following the demo app, and both our app and the demo app return the same step count.
Hi there!
Could you show how you're calling the client action to get the monthly step count? In other words, what values are you passing in the input parameters?Best regards,
Alexandre Jacinto
Hi Alexandre,
This screenshot is the demo app implementation on getting the monthly steps count and basically we have the same way on how we did and also getting incorrect count on both our app and the demo app.
And our guess is it is not getting the step count for the first day of the month.
Hey Arbhe, just to confirm, are you using the latest version of the Plugin? There were some changes in a version last year in how data is aggregated and returned by the plugin, so if you're not using the latest version, please try with it and see if the data gets returned correctly.
Also, when using a Daily TimeUnit, via the AdvancedQuery screen (home screen -> Test AdvancedQuery button at the bottom of the screen), is the sum of the steps across the days of the month return the correct amount?
Hi Pedro,
Yes we are using the latest version of the plugin.
On using the daily time unit of the advance query it is getting the complete and correct count for the days.
Additional information, the issue is only occurring for the current month. The previous month count for the monthly time unit is getting the correct count.
Hey @Arbhe Olantigue, a new version of the Health & Fitness plugin was released, that may fix the issue you are having on Android. Keep in mind however that MABS 11 is required to use the new version.
Let me know if it helps.