Google fit Recording API delay

不羁岁月 提交于 2019-11-29 15:06:30

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!