Google fit Recording API delay

后端 未结 1 1755
旧时难觅i
旧时难觅i 2020-12-21 06:20

So I\'m writing a fitness application for android. I\'m using the Google fit API to count the steps. I\'m using the Recording API to count the steps when the app is in the

相关标签:
1条回答
  • 2020-12-21 06:44

    Your are right. Recording API takes some time for update. There is two way that came to my mind.

    1. always get steps by History API. I mean when activity is running just increase the checking rate of History API. Advantage of this is though it is taking some time, user always the same count.
    2. another way is bit more complex. store your Sensors Step count with time & apply some logic whether or not you need to add & show this to user.

    Sorry for the long text.

    0 讨论(0)
提交回复
热议问题