Ayagikei / LifeUp

Pure and highly customizable gamified to-do and habit-forming app.
209 stars 4 forks source link

[Feature] Read the daily steps from Google Fit API #56

Open KierPrev opened 1 year ago

KierPrev commented 1 year ago

I don't know what the current method to read daily steps is based on, but always reads less than the real quantity.

Almost everyone now has a smartwatch or smart band. It would be helpful to read the daily steps from the Google Fit API automatically. Here's some useful info: https://developers.google.com/fit/scenarios/read-daily-step-total

Thank you!

Ayagikei commented 1 year ago

Thanks for your suggestion!

The current step count is calculated using the mobile phone sensor to calculate the daily difference. In some cases, it is difficult for applications to obtain accurate data.

We will consider integrating the function of Google Fit. But we may need to evaluate the integration cost (for example, it seems to require additional permission authorization, and SDK access may have a volume impact).

Additionally, we provide an API for setting the number of steps. If you can get the step count by some means, you can also try to use it.