flutter-plugins
flutter-plugins copied to clipboard
[Pedometer 4.1.1] how to count daily steps?
Description
Hello
if the user doesn't open the app for a day, or a week, or doesn't open the app until evening but they walked some steps in the morning, it's really hard to count the steps reliably.
my current solution is, to get the current steps when the app is opened, and save it to a local database with the current date. when the user opens the app again the same day, i calculate the walked steps like that. but it has a lot of issues that i mentioned above.
does anyone have a good solution for this? i tried Health package but it returns 0 for the walked steps, which i talked about here