Join the community to talk, learn about and discuss the Google Fit APIs. See our docs, FAQ and known issues on the info link above.
See all
Members (6,557)
Bill Strathearn's profile photo
Matt Sullivan's profile photo
Gouri Joshi's profile photo
Muz Mostofi's profile photo
Gustavo Moura's profile photo
Paul Saxman's profile photo
Google Developers's profile photo
Lisa Wray's profile photo
Satinder Singh's profile photo
官哲宇's profile photo
Oleg Soyko's profile photo
Brandy Skinner's profile photo
ada koda's profile photo
David Lawless's profile photo
Mohit Kumar Verma's profile photo
Tasnia shawon's profile photo
Wei Gao's profile photo
Greg van Berkel's profile photo
Steven Anderson's profile photo
Gyuri Grell's profile photo
Placyd Placyd's profile photo
Giovanni D'Amore's profile photo
Tinc TRAIAN-LAVINIU's profile photo
Abel García Dorta's profile photo

Stream

Join this community to post or comment
Pinned by moderator

Muz Mostofi
moderator

Announcements  - 
 
Hello everyone,

We've added some common scenarios to our developer site for various use cases such as recording+reading steps, writing+reading nutrition & hydration.

Please do take a look, hope this makes it clearer how to use our APIs for certain use cases.

https://developers.google.com/fit/scenarios/record-steps
https://developers.google.com/fit/scenarios/add-nutrition-data
https://developers.google.com/fit/scenarios/add-hydration-data
https://developers.google.com/fit/scenarios/read-daily-nutrition
4
Add a comment...

Alex Rosen

Bug Reports  - 
 
I found what I consider to be a serious flaw in the Getting Started documentation. I built an app with Android Studio 2.1 and tested it using a the most recent emulator Studio recommends. My queries always returned empty DataSets even though I have data stored in Fit and can see it in the Fit app and on the web. I eventually found that I can only access my data from a device that has the Google Fit app installed. I never came across this dependency being stated in the Getting Started guide or any other Google docs that I read multiple times trying to resolve this issue. That alone is very frustrating. The fact that you can't install Google Fit on an emulator without some special magic creates the additional frustration that any testing with real data needs to be done on my phone. Finally, this dependency means that if I may not be able to deploy my app on a device that is not compatible with the Google Fit app (like smartglasses). Unless I'm incorrect about this dependency, I think this should be prominently included in the Getting Started documentation. I suspect that many others would want to start by building an app that retrieves their existing data and would build that app using Google's recommended development tool and emulator.
1
Alex Rosen's profile photoGustavo Moura's profile photo
3 comments
 
Yes, I agree. Docs need to be improved until we can clean up the APIs. +William French​
Add a comment...
 
I just started using Google Fit last week and today tried to view all of my running data on the Fit website but everything is blank. How do I sync the data on my phone with the cloud?
1
Scott Fringer's profile photoChris Charles's profile photo
4 comments
 
That fixed it! Thank you.
Add a comment...

William Sousa

Bug Reports  - 
 
Google Fit keep crashing Play Services on Android Nougat. Nexus 6P user. Had to uninstall.
1
Mark Stronge's profile photoWilliam Sousa's profile photo
15 comments
 
Mark all permission are check. After I send the bug report I uninstall Fit and had zero Google play crashes.
Add a comment...

Andrew

Bug Reports  - 
 
Often when I try to start tracking an activity, when I tap START, nothing will happen for 10-20 seconds, and then I get a "failed to start, please try again" message. At first I thought this may be a GPS issue, but it applies even to activities like weight lifting or stationary biking. It will happen over and over which makes it hard to track activity. Any idea what may be happening or how to fix this?
1
Add a comment...

silmi nawaz

Bug Reports  - 
 
I have Google fit on my samsung s7 edge. lately its giving me far more steps than I have ever taken everyday. Dont know whats wrong but its pretty annoying because I have been using it accurately for a long time since My samsung Note 3 years ago.
1
Add a comment...
 
I own Samsung Note 5 (Android 6.0.1) with LG Watch Urbane 2nd LTE. I have the problem with Google Fit recently. I run on the treadmill for 45 min daily. I wear LG Watch but put the phone on the table near the treadmill.
In the last two days, Google Fit report that I run on the treadmill for only 22 min. But when I click to see the detail, it report that the Total time is 45 min , but the Active time is only 22 min.
1
Gustavo Moura's profile photo
 
Hi there, could you file a data bug? The link to the form is in the community details. Thanks!
Add a comment...

Ed B

Bug Reports  - 
 
Why does the local activity only count steps as far as how active you are compared to other people in your city? I bike a lot and that activity doesn't seem to factor into how active you are.
1
Gustavo Moura's profile photoMuz Mostofi's profile photo
2 comments
Add a comment...
 
Hi Team,

I've got some doubts and i think that you can help me:

1. I'm developing an app that uses Android API to get the fit data. Need the user has Internet connection to check the activity? Ordenado the Android API can read the info from the Phone?

2. When i call the Android API, the results are in real time? Or it has a delay?

3. If i suscribe() to get the fit info, can i créate a thread that run in background to read the user activity each hour?

Thanks in advance!!!

1
Gustavo Moura's profile photoRicardo Gonzalez's profile photo
2 comments
 
+Gustavo Moura Thanks! Very clear! 
Add a comment...

Cynthia Van Dam

Bug Reports  - 
 
I think Fit subtracted distance. I know I walked a mile before 8 am. Then I walked about a mile after 8. I wasn't quite done with the walk and Fit showed something like 1.7 miles I have done some walking throughout the day. I think at some point Fit or another Ap asked me to use High Accuracy in location. Now Fit says I have walked .9 miles.. What is up
1
Add a comment...

nathan baker

Bug Reports  - 
 
Possible to change when the end of the day occurs? I tend to do my exercises near midnight and it gets very annoying to miss a goal because midnight came but I kept going.
1
Carl Aron Carls's profile photo
 
Thought the same quite often; all kinds of fitess apps go in 24h and reset at midnight. Goals and display should just have an option to set the time of day to "reset". Automaticall, when I get up or go to sleep would be awsome....
Add a comment...

About this community

The Google Fit Developers group is a community for motivated developers who are interested in our Fitness APIs. Here, you can post questions, comments, or just your general enthusiasm for the Google Fit team!

Santosh Gogi

Discussion  - 
 
What is the suggested way to get the Distance and calorie expended during an activity tracking say running on android?
For example: calculate TYPE_CALORIES_EXPENDED from sensor api or AGGREGATE_CALORIES_EXPENDED from history apis. Or if there is a magical third way to do it better?
1
Gustavo Moura's profile photo
 
AGGREGATE_CALORIES_EXPENDED is preferred. Since it doesn't need to return data with very low latency, the History API can do more computations and thus should return more accurate data.
Add a comment...

Sachin Khandelwal

Bug Reports  - 
 
Hi, Google fit doesn't give me the right distance calculation. The distance increases very slow or it completely stop increasing for that day. I've included today's screen shot which is showing only 0.6 kms for a 1 hr 40 mins walk. In my walk 1 hr is pure brisk walk. I've entered all the details like gender, weight and height, also using high accurate mode.

I'm using the latest version of fit 1.58.09-108. I'm using One Plus 2 running Oxygen OS 3.0.2, Android 6.0.1.
1
Add a comment...

Nikhil Warrier

Bug Reports  - 
 
Am using google fit with my Asus ZenWatch 2 and Nexus 6P
On the watch, it is always a day behind unless I reboot the watch. It then shows the correct day. Why am I needing a reboot for the watch to pick up the correct day ?
1
Nikhil Warrier's profile photo
 
Any inputs developers ???
Add a comment...

Madhavan Mx

Bug Reports  - 
 
I am using a Note 7 with Huawei Watch. Since yesterday, Google Fit has been crashing on Android Wear repeatedly.

I have tried resetting the watch but to no avail.
1
Add a comment...
 
I regularly use Fit on my Samsung S7 Edge. Recently, it started showing the message shown in the screenshot. Making sure that all apps were up to date did not help. I am running Android 6.0.1, kernel version 3.18.14-8252943, and have a 2nd generation Moto 360 paired to the phone (if that makes a difference). Any pointers on what is wrong are gratefully received.
1
Gustavo Moura's profile photoMiguel Capitao's profile photo
4 comments
 
Done. Sent from the account I am posting from.
Add a comment...

Scott Jordan

Discussion  - 
 
I use MyFitnessPal for nutritional health (food intake/calories, weight, etc) and I use the Runtastic ecosystem for exercise tracking (runs, sit-ups, etc).

Now, MFP and my Runtastic account can connect directly to ech other to share data, but each can also connect to Google Fit.

Note, I would like to include Google Fit somehow in order to act as a central repository for all of my nutrition and exercise data.

So, my question is, which connection strategy is optimal?

1. Circular Integration: connect all three, so MFP and Runtastic to each other AND both to Google Fit

2. Hub Integration: connect each (MFP and Runtastic) to Google Fit but not to each other directly

3. Daisy Chain Integration: connect Runtastic to MFP and then ONLY connect MFP to Google Fit

4. Some other permutation that I have not thought of

Sorry if this is not an appropriate community for this question. I figured developers would have a better understanding of the inner mechanics of these integrations.
1
Scott Jordan's profile photo
3 comments
 
+Gustavo Moura Okay, I just got a reply from MFP support. I was right. #1 would result in duplicate records. So, for me, #2 works (Fit as hub/conduit).

MFP Support Reply:

Thank you for taking the time to contact us. We do not recommend having all the partners linked to one another as that would result in duplicate exercise posting in MyFitnessPal.

If you want Runtastic information to also sync to Google Fit, then you should link Runtastic to Google Fit and then Google Fit to MyFitnessPal.

If you do not want your Runtastic data to sync to Google Fit, then you can link Google Fit and Runtastic to MyFitnessPal separately, without linking them to each other.
Add a comment...

Albert F

Bug Reports  - 
 
Hi,

I have a problem in that the Google Fit data on my Samsung Note 3 phone has not been sync'ed up with fit.google.com since Aug 11th.

On my phone, I could see Fit data showing about 10k steps per day daily. What could be the issue? Is there a way to force the Fit data on my phone to be sync'ed up with fit.google.com?

Thanks.
1
Albert F's profile photo
 
I found a way to manually sync the Google Fit Data:
From Android settings
--> Accounts
--> Google
My gmail account is shown as "Sync disabled".

When I clicked my gmail account, it showed a no of options, including these 2:
Sync Google Fit
Sync Google Fit data

I clicked both the above options, which caused the Google Fit statistics on my phone to sync up with fit.google.com.

Is there a way for the Google Fit data on the phone to be automatically sync'ed up with fti.google.com?

Thanks.
Add a comment...

Thiago Brayner

Bug Reports  - 
 
Google Fit is not synchronizing with the SmartBand 2 app from Sony, I'm losing my data?
1
Gustavo Moura's profile photo
 
It looks like some of The data (like HR) is making its way through, but not others. Can you file a data bug? Link is in The community description
Add a comment...