Using Google Fit APIs without Google Fit app

牧云@^-^@ 提交于 2019-12-05 18:20:08

问题


Can the Google Fit APIs be used without having the Google Fit APP?

I want to use the Google Fit APIs to count number of steps but can this be done without having to install the Google Fit App.


回答1:


Yes obviously you can use it without application installed . Let me tell you this way ..

  1. If you want to that google fit will record step count for your app then you only have to subscribe the Step datatype by using RecordingApi of google fit .

  2. Use HistoryApi to fetch the data from google fit as you want whether in buckets or whether it is daily data you want .

I can put some code too if you want . Otherwise you can just follow the google fit guide .

For more clarification some magical lines right from Google Docs below .

The Google Fit app uses the Google Fit platform, which is included in Google Play services. Your fitness or wellness app can use the Google Fit platform without requiring users to install the Google Fit app.




回答2:


Yes you can.

Option 1:

You can go to fit.google.com and manually add activity data. Once you add your activity, the data will be available immediately.

Option 2:

From Google Fit developers site,

Google fit is an open platform that lets users control their fitness data, developers build smarter apps, and manufacturers focus on creating amazing devices.

Which means, you can use Google Fit APIs to create applications like Google Fit App or the platform can also be integrated directly into several fitness devices which can monitor the fitness data.

So, if you have any other application or a fitness device that pushes data to Google Fit server, you don't need to use Google Fit App.



来源:https://stackoverflow.com/questions/31042152/using-google-fit-apis-without-google-fit-app

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