user2424586
user2424586

Reputation: 151

Using Google Fit APIs without Google Fit app

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.

Upvotes: 11

Views: 7051

Answers (2)

SpiritCrusher
SpiritCrusher

Reputation: 21043

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.

Upvotes: 9

Lalu
Lalu

Reputation: 752

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.

Upvotes: -1

Related Questions