11

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.

user2424586
  • 151
  • 1
  • 5

2 Answers2

9

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.

ADM
  • 20,406
  • 11
  • 52
  • 83
  • A sample code will be nice /w nodejs and angularjs. – Dishank Jindal Mar 22 '18 at 12:21
  • Are you looking for sample in `react-native` ? – ADM Mar 22 '18 at 12:24
  • nop, need to implement in angularjs web app. I am looking for a code understand how the CRUD will work with GoogleFit. Basically i am working on how to fetch data from GoogleFit and display to user. Not worried about how the user device will update the Google fit dataBase. – Dishank Jindal Mar 22 '18 at 12:30
  • 1
    I do not have much idea about `node.js` i am in android technology. If you are looking for integrate `Googlefit` on web then you need to look for its web samples [Here is one](https://github.com/martzcodes/node-google-fit) it uses rest apis. Keep digging .. have a look at [Google Fit REST API](https://developers.google.com/fit/rest/) – ADM Mar 22 '18 at 12:36
  • 1
    @ADM If google fit app is not installed on my device then how my android app will count steps? – Aniruddha Mar 27 '18 at 15:03
  • Health kit is part of play services . Fit is an app by google which shows the data analytics. Read https://developers.google.com/fit/ – ADM Mar 27 '18 at 15:30
  • @ADM, Can you share sample android studio project where it uses Google Fit REST API? I want to build android app where users can tract steps without installing Google Fit app on their phones. Thanks – m00n May 29 '18 at 09:53
  • If you want to build Android app why use RestAPis ? Just use FIt SDK . All the APIs you need are documented . Just [get Started](https://developers.google.com/fit/android/get-started) its been evolve since last time i used it. [Here](https://github.com/googlesamples/android-fit) are samples. – ADM May 29 '18 at 14:54
  • Can I record steps and retrieve fitness data without installing Google Fit app with the Fit SDK? – m00n May 30 '18 at 01:27
  • Yeah ... Read the answer above . – ADM May 30 '18 at 01:47
  • Can you share some source code where it records steps and retrieve steps in real time? It would be great for me as I am new to android. Many thanks – m00n Jun 02 '18 at 02:16
  • @ADM, Can you share some code where it counts step in real time without Google Fit installed? – m00n Jun 04 '18 at 13:05
-1

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.

Lalu
  • 732
  • 3
  • 8
  • 20
  • My question is if I don't push data but I use google Fit API to fetch buckets but I also don't use FIT, would the step data make sense? – Anirudh Ganesh Nov 26 '20 at 05:36