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,289)
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
Brandy Skinner's profile photo
Mohit Kumar Verma's profile photo
Nicola Horley's profile photo
Ombretta Mancini's profile photo
Mr. Otaku Nostalgia Pop Cutlure (Ryan Davis)'s profile photo
Kevin Alehexis Guevara Cabrera's profile photo
Wei Gao's profile photo
Taras Bazyshyn's profile photo
Derrick H's profile photo
ahmet burak demirkoparan's profile photo
Giovanni D'Amore's profile photo
Güepa Fitness (Guepafitness)'s profile photo
Tinc TRAIAN-LAVINIU's profile photo
Abel García Dorta's profile photo
Greg van Berkel's profile photo

Stream

Join this community to post or comment
Pinned by moderator

Muz Mostofi
moderator

Announcements  - 
 
Hi everyone,

In the latest version of Google Play Services v9.2 we have added the following new features to Google Fit platform:

- Improvements to step counts on Android Wear to make step count measurement both consistent across watchfaces and apps, and persistent with HistoryApi#readDailyTotal. Recording steps on Android Wear with RecordingApi is now no longer required.
- Listen for data updates with HistoryApi#registerDataUpdateListener() to allow your app to update its internal data cache when stored data is updated by another app.
- Added a new hydration data type used to measure water consumption.

https://developers.google.com/android/guides/releases
8
Satyendra Mishra's profile photoPatrick McBride's profile photo
10 comments
 
Hi +Satyendra Mishra , thank you for looking into this. I'm looking forward to hearing about the update.
Add a comment...

Jeffrey Pugh

Discussion  - 
 
For those who have experienced the Google Fit "blob" problem (you run around on a field and don't get any coverage information because Fit decides to just show a blob over the area), this is what I show in my Referee watch, and what a Soccer Referee is looking for. It shows field coverage, including getting into the corners, as opposed to poor refereeing where you sit in the center of the field, or run only between the 30 yard lines.

That's my plug for fixing this in Google Fit.
1
Gustavo Moura's profile photoJeffrey Pugh's profile photo
4 comments
 
Good observation :) The center ref runs a diagonal oval and even that depends on the game dynamics. And yes, green=walking, yellow=running, red=sprinting.
Add a comment...

Ryan Senio

Bug Reports  - 
 
Anyone notice Fit Challenge data sync is VERY inconsistent on Android Wear? For example, Push up Challenge. The watch knows I'm on day 16, but the app on my phone doesn't report anything about push ups from any days and the fit website only shows one day with push ups.
1
Add a comment...

Jannet Ponder

Discussion  - 
 
My Google fit does not track my steps very well. It will track intermittingly. Yesterday it tracked for one hour when I did my walk at 1pm. Then later, 30 minutes at 6pm. Then nothing. I have walked all day. What gives?
1
Bill Strathearn's profile photo
 
I'm curious to know more about which part of the Fit app is not updating with your all-day progress. Are you looking for walks smaller than 10 minutes on the home screen or are you not seeing the step count increase at the top of the home screen or in a goal progress wheel.
Add a comment...

Steve Swinsburg

Bug Reports  - 
 
The latest update allows you to set a predetermined monthly goal of 360,000 kJ. However if you want to set your own goal, the number cannot go past 300,000. I do roughly 10000-11000 kJ per day, so in a month this is over 300,000. Could you please increase the limit for a user entered value?
3
Bill Strathearn's profile photoSteve Swinsburg's profile photo
2 comments
 
Great, thank you!
Add a comment...

Jim Trainor

Discussion  - 
 
Regarding the fit.google.com nutrition card - order of macro nutrients.

The nutrition summary that I am seeing lists macro nutrients in the order: fat, protein, carbs. Food labels in North America list these macro nutrients using a different order: fat, carbs, protein.

I suggest that the North American users of Google Fit are better served by changing the order of this data to match that which they are familiar with on food labels. i.e., fat first, carbs second, protein last.
1
Muz Mostofi's profile photo
Add a comment...

Eric Ozbun

Bug Reports  - 
 
I got a moto 360 v2 today, but Google Fit keeps crashing, the app doesn't even open.
2
Sandro Zahra's profile photoEric Ozbun's profile photo
2 comments
 
Yeah, that was a total brain fart... I thought it was due to the fact the phone and watch were both connected to wifi... Turns out the wifi at work was blocking connection to the update server. As soon as i got home it updated three times (it was way behind on firmware)! It all works like a charm now!!
Add a comment...
 
Hey guys. am new to using google fit. Am developing for android.

My phone does not have a hardware step counter, so I am using datatype as derived. I am getting step counts(I guess google play services 9.2 has inbuilt functions to do so), but the frequency of updation is rather inconsistent(I have tried, 3seconds, 10 seconds and 30 seconds for datasource listener).

I am successfully able to register the listener and get the initial value of cumulative step counts, but no updates after that. Have you guys faced these issues? Can you give me some pointer regarding this?

My current goal is just to count the number of steps.
1
JAYESH PURSHOTTAM's profile photo
 
I am but sure either, whether the data is from gps, accelerator from phone or watch
Add a comment...

Rick Shenk

Bug Reports  - 
 
Google Fit ap on my Droid Turbo changes steps/calories for completed activities, hours later. So, for example, I get credit for hitting 2200 calories (my goal), but the next day, it reports yesterday's calories at less than 2000, though the 2200 goal is still credited. Generally, "Fit" never stops changing the reported calories/steps of my significant activities and/or "inactive calories". Why?
2
Add a comment...

Job Burg

Bug Reports  - 
 
Google fit keeps crashing on Sony Smartwatch 3 in combination with moto g3.
1
Job Burg's profile photoEric Ozbun's profile photo
2 comments
 
My google fit keeps crashing on moto 360 v2. App doesn't even launch
Add a comment...

Tsachi Davidov

Discussion  - 
 
hello, i was just posting in the Google Calendar Forum under the new Goals section and mentioned that it would be great if the Walk Goals could be Sync with Google Fit so the users need not to update the Goal as the Goal will get the data directly from the Fit app of the smartphone and will project it in the calendar.
so even if the user was not setting any Goald however the Fit app detected that the user was performing some activities, then the calendar will show it automatically...
3
Guillaume A. REQUIER's profile photoTsachi Davidov's profile photo
2 comments
 
That's true!
it shuold be "one system" so before your training / walking you could ask Google to provide you with 8 Km of walking route (in your area) and the system will nevigate you while you are walking and will build you a route that will not be the same boaring one...

And in the end it will be marked on your calendar as DONE without asking you to "DEFER" / "MARK AS DONE"...
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!

Ryan Newsom

Bug Reports  - 
 
I am having an issue currently in my application which uses the Google Fit Sensors API. We register the client inside a service, as well as connect to the sensors API there. For some reason, we randomly stop getting updates from the OnDataPointListener. We have timeout set to 24 hours for the listener, sampling rate 1 second, log statements everywhere which are logging to a file. The client never notifies us it's been disconnected, failed to connect, etc... What's weird is we even keep getting location updates from the Fused Location Provider(also uses GoogleApiClient). I forked your sample app into my repo and did some testing, and was able to re-produce the defect. https://github.com/RyanNewsom/android-fit/tree/master/BasicSensorsApi
3
Ryan Newsom's profile photo
3 comments
 
steps to reproduce) 1. Download my version of your sample app, which uses a service. 2) Press start tracking 3)background the app 4)walk around(or shake the phone), foreground app, see if its still updating the distance. Usually it stops updating distance around 10 min mark, although I've seen it last longer. It seems very random when it decides to stop updating. I've re-produced it on my s6(6.0.1) and droid turbo(5.1).
Add a comment...

Steve Swinsburg

Bug Reports  - 
 
I have found that the google fit watch face doesn't get updated first thing in the morning after being on charge overnight. To force a refresh I have to restart the watch. In the wearable screenshot below, the kJ is 0, but should be around 2300, which is what my phone says in Google Fit.

Every now and then I have seen this correct itself and the ~2300 kJ - generally by opening google fit on the phone, and then it shows up but every other day I have to restart it to get it to correct itself.

Is this a bug or do I just have to be patient? What is the sync schedule?
1
Bill Strathearn's profile photoSteve Swinsburg's profile photo
2 comments
 
When I tap the watch face and the app opens, it shows the correct data. On the phone it is v1.57.52-100.
Thanks.
Add a comment...
 
Do sessions have an end time associated with them? I can access a session's start time using getStartTime(), but the only way I can access an end time is using the SessionStopResult. I'm trying to calculate duration of a session once it has already been started and stopped, so I no longer have access to the SessionStopResult. Any recommendations on how to calculate a past session's duration?
1
Satyendra Mishra's profile photo
 
getEndTime is exposed in
https://developers.google.com/android/reference/com/google/android/gms/fitness/data/Session.html#getEndTime(java.util.concurrent.TimeUnit)

also if end_time is not populated, it means that sessions is ongoing otherwise it should be populated.
Add a comment...
 
Hi there, I'm Carlos, cofounder at WeFitter.com, a fitness gamification app that integrates and syncs other fitness apps. Users collect points, earn rewards and completes challenges.

We have google fit available and right now, is a NIGHTMARE with users who are connecting google fit since their API decided to stop providing fitness data (Calories, km, etc) unless you have added height, weight and gender in their profile

So basically users who didn't add their height, weight and gender on the google fit app (THE BAST MAJORITY) are not synching their fitness data with us so they are not progressing in our challenges or earning points. However, they are seeing calories and distance progress on google fit. So that makes them CONFUSED and we have many users complaining and asking why their activities are not being sync.

Anyone was aware of that? do you know how to solve this? Any advice will be really appreciated. Thanks!
1
Satyendra Mishra's profile photoMuz Mostofi's profile photo
3 comments
 
Carlos, have you tried capturing height and weight from the user and writing those data points to Fit?
Add a comment...
 
I have an application that has just begin writing nutrition data to google fit. It works fine, I can see my own data appearing on fit.google.com. My test users can see their data also, as expected, on fit.google.com. However I (we) don't see it on the mobile fit app - i.e. there is no nutrition card at all. Can someone explain how/why nutrition data appears on fit.google.com but not on the mobile Fit app? There is no documentation that I can find on this subject. It is a bit of a mystery. Thanks!
1
Add a comment...
 
Trying to get a registerDataUpdateListener listener working here. Thus far, I have always received a java.lang.SecurityException for meal data. I'm using Fitness.HISTORY_API & Scopes.FITNESS_NUTRITION_READ when building the GoogleApiClient and DataType.TYPE_NUTRITION & DataSource.TYPE_DERIVED for the listener.

Do you have any tips or sample code available?
1
Jim Trainor's profile photoJeffrey Pugh's profile photo
2 comments
 
Patrick, if Jims suggestion doesn't fix things I suggest you post sample code on SO and link to it from here. I had quite some trial and error to get data sources working cleanly.
Add a comment...
 
Ok imperial system users.

In this use case, which unit would you use for weight fat?

For exemple you would replace 1 g by (approximately):
- 0.04 oz?
- 0.002 lbs?
- Other unit?

1
Patrick McBride's profile photoJeffrey Pugh's profile photo
16 comments
 
But at this rate, maybe oz would give a better sense of achievement ;)
Add a comment...
 
Hello,

We are building an app that should be integrated with GoogeFit. We would like to list each activity of a user, including quantity an unit. We are using session data and take the activity name+start date+end date. However the API call returns random end dates(future ones, e.g.: 10 Jan 2017) for the activities and sessions as well. We are trying to sync the data back to Monday 00:00 UTC of the currenWeek. Syncing happens every hr and if an activity arrives with the same start and end date we take it as duplication and we do not save it..

Question#1: What API should we use?
Question#2: What data type(s) should we use?
Question#3: Should we work with session data at all?
Question#4:Does an activity or a session has an exact end date?
Question#5; Can we obtain the duration of a certain activity?

Cheers:-)
1
Add a comment...
 
when i install, it get stuck on welcome screen, after that my phone will reboot,
Have it installed before with no problems
1
Add a comment...