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,054)
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
Tinc TRAIAN-LAVINIU's profile photo
Alejandro Tellez's profile photo
Greg van Berkel's profile photo
Billy DeDeWawWaw's profile photo
James Kilgour's profile photo
Kevin Alehexis Guevara Cabrera's profile photo
Wei Gao's profile photo
Mohit Kumar Verma's profile photo
ahmet burak demirkoparan's profile photo
Derrick H's profile photo
Redha “Ikki” Benlarbi's profile photo
Thomas Heath's profile photo
Sil viu's profile photo
ada koda's profile photo
Franco Barbieri's profile photo

Stream

Join this community to post or comment
Pinned by moderator

Muz Mostofi
moderator

Announcements  - 
 
Hi everyone,

Here's a recording of the talk we gave at I/O this year!

Feel free to comment below if you have any questions on anything presented. Thanks to everyone that was there in person and that stopped by our sandbox to check out our cool new demos!
7
Marx N's profile photoAlexander Smirnov's profile photo
6 comments
 
A question about cooperation with android wear device. In settings of Google Fit i found requets for using data from heart rate monitor. But now functionality of hrm is so pure, i could only measure my heart rate manually it doesn't measure heart rate during the activity, f.e. running. Please could you tell if you are going to enreach the functionality of hrm in GF. Thank you.
Add a comment...

Souness Souto

Bug Reports  - 
 
For the past 3 days google fit has been recording only steps and not the distance and calories. Pls look into the issue as I'm a daily user of Google fit. Thanks 
1
Add a comment...
 
Hey all. I have a question about a linked app. I'm just got a Mi Band 2 and linked it to the Google fit app via the mi fit app.

The question is about location and run vs walking. Before I got the band I just ran with my N5X and it tracked my location pretty accurately and showed run/walk data separately.

With the band i ran today for 2 miles and walked 2 miles.but it only recorded my workout as walking. Also Gps data was replaced by approximate location from the band.

Is there a way to have the phone record location and determine run/walk distance and just let the band do heart rate and step counts?
1
Add a comment...
 
Hello everyone,

I hope you all are doing well. I'm currently developing a Fitness app with Google Fit API, and have come across some issues, which have been difficult for me to solve. I've looked for help on stackoverflow.com, reddit.com, etc, but with no promising result.
Here is the issue I have:
http://stackoverflow.com/questions/37971493/google-fit-recording-api-no-automated-storage-of-fitness-data-and-sessionapi-re
1
Add a comment...

Dario Salvi

Bug Reports  - 
 
Guys, are you going to fix the aggregated basal metabolic rate bug?

there is no way for retrieving it!


here's the request:

DataReadRequest rrr = new DataReadRequest.Builder()
.aggregate(DataType.TYPE_BASAL_METABOLIC_RATE, DataType.AGGREGATE_BASAL_METABOLIC_RATE_SUMMARY)
.bucketByTime(1, TimeUnit.DAYS)
.setTimeRange(startTime, endTime, TimeUnit.MILLISECONDS)
.build();

and here's the exception:

java.lang.IllegalArgumentException: Unsupported input data type specified for aggregation: DataType{com.google.calories.bmr[calories(f)]}
at com.google.android.gms.common.internal.zzaa.zzb(Unknown Source)
at com.google.android.gms.fitness.request.DataReadRequest$Builder.aggregate(Unknown Source)
.......
1
Gustavo Moura's profile photoDario Salvi's profile photo
2 comments
 
thanks... I'll wait for the new Play Services then..
Add a comment...

Martin Fechner

Bug Reports  - 
 
Whenever i record a running with just my sony smartwatch 3 it won't sync propperly with the app on my phone. it takes several minutes before it aperars in the app, on the wathc it disaperas as soon it is connected to the phone again.
When it's finally synced the data is not correct - too small numers regadin time and distance (total time and active time differ by 50%, but i run the whole time)  and no path data, just the starting point.
I stopp the recording the moment i stop running, before i enter my home, before there is a connection phone and watch.
Going over the data manually after each training is not too fullfilling
1
Add a comment...
 
I am having issues with active time not showing up on my Google Fit app on my phone, but it was showing properly on the website.  I tried deleting the app and reinstalling, but that didn't help.  I thought I could delete the data on my phone and then have it re-sync with the data on the website... and now all my Google Fit data is gone.  Is there any way to recover my months worth of data?  This is really irritating.
1
Gouri Joshi's profile photoYvonne Waters's profile photo
2 comments
 
Hi hi - sure... I am using Google Fit version 1.56.14-008 and Google Play Services version 9.2.56 (038-124593566)

Incidentally, it is now tracking everything properly on my phone (Galaxy S4 running Android 4.4.4).  Too bad all of my historical data is gone.
Add a comment...

Jeffrey Pugh

Bug Reports  - 
 
Here's what I call the "blob problem". If all the location data points are in one area (because I'm running back and forth on the field refereeing a soccer game) , Fit seems to assume that's bad data. The accuracy for most of these points is 4-25m which isn't great but isn't terrible. What I want is the normal pathing you get from Fit with a straight line run. My Tracks does a decent job of this, so you can see field coverage.

Here's the data: https://docs.google.com/spreadsheets/d/14lIXtOFjm-O6KwJUYPWoU5oAJJVAH0ZFHn4hKkBat_A/edit?usp=sharing

I tried to take a snip of the points on the same map, but you can do that yourself with the lat/long values.
1
Gouri Joshi's profile photoJeffrey Pugh's profile photo
2 comments
 
Thanks for the confirmation - I would think overlapping tracks would ALWAYS be more useful than the "blob" which just makes you think your GPS is broken. ANd of course without tracks, Google can't really declare My Tracks "replaced" by Google Fit.
Add a comment...

Jeffrey Pugh

Bug Reports  - 
 
I'm encountering a weird 5015 error when I insert sensor data into History API. See details here:
1
Jeffrey Pugh's profile photo
2 comments
 
I have worked around this problem by creating parallel data sources, and copying the sensor data into data points, and then inserting using the Fit History API. Still no idea why I get the 5015 errors however.
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!
 
Hi everyone!
i have Nexus 6p stock and i use a Sony Smartwatch 3 to calculate the calories burned. With My Fitness Pal i take note of calories and by synchronizing with google fit I have a precise chart of the day. But from a week the sync work only from MFP to Google Fit and not from Google Fit to MFP.
I tried any solution: delete application data, uninstall and reinstall the applications, delete, and add synchronization. Unfortunately it does not work. Have you any advice on how to restore this function? is a known bug?
1
Muz Mostofi's profile photo
Add a comment...
 
I am following the tutorial below for integration with google fit. Everytime the activity is opened, a connection with api client is done. If there is no internet, I get the connectionresult as "NETWORK_ERROR". How to ensure fit api remains connected during offline mode also?
IntroductionGoogle Fit is a platform that allows developers to build applications that are focused on user fitness data. One of the tools Google has provided is Goog
1
Add a comment...
 
Google Fit has stopped logging any of my activity except my step count. Is there a fix for this?
1
Gouri Joshi's profile photo
 
Hi +Dorothy Quon, The data is still being logged and you can see it on fit.google.com once it has synced to server. The app should be fixed soon.
Add a comment...

Johanna C

Discussion  - 
 
Hi, I just started training yesterday and today I feel like wanting to quit my body aches specially my tights, I used to train a lot since I was a little girl and did lots of sports but it's been 5 years without training and now I feel like wanting to quit because of the pain 😭😭 but at the same time I want to be on shape so I can do krav maga or jiu jitsu
1
Add a comment...
 
I want to fetch the activity from google fit using REST api. I created the data source and dataset with one datapoint. Then i added some activity in my googlefit account. Then i tried to retrieve activity from webside. But i got only the response as

[minStartTimeNs] => 1466053540000000000
[maxEndTimeNs] => 1466658340000000000
[dataSourceId] => derived:com.google.step_count.delta:1079851242193:estimated_steps
[point] => Array
(
[0] => Array
(
[startTimeNanos] => 1466053539000000000
[endTimeNanos] => 1466658339000000000
[dataTypeName] => com.google.step_count.delta
[originDataSourceId] =>
[value] => Array
(
[0] => Array
(
[intVal] => 8
)

)

[modifiedTimeMillis] => 1466658339834
)

)


I didnt find any activity in the response.How can i fix this issue. Any help on this will highly appreciated.
1
Add a comment...
 
I uploaded some fitness data via google fit REST API, but I cannot access these data in my Google Fit app. Do anyone know how to deal with this? I just want my fitness data collected by my watch can be seen in Google Fit app
1
Jeffrey Pugh's profile photoAnka Zhao's profile photo
2 comments
 
Hi, Jeffrey, I can get my uploaded data with the REST API, but in google fit app, the step count remains 0. Here is the test data I uploaded: https://docs.google.com/document/d/1qow1xEzCBlFw8wBhUw-NfuCblg8DekFO91Mhz90ejIc
Add a comment...
 
Hi
I want to get weight with Fit API for Android.
But I can read only blank data about weight.

DataReadRequest readRequest =new DataReadRequest.Builder()
.setTimeRange(startTime, endTime, TimeUnit.MILLISECONDS)
.read(DataType.TYPE_WEIGHT)
.setLimit(1)
.build();

DataReadResult dataReadResult =
Fitness.HistoryApi.readData(client, readRequest).await(1, TimeUnit.MINUTES);

This code return only blank.
Do someone know to get weight ?
1
Add a comment...

Jeffrey Pugh

Bug Reports  - 
 
Is it documented anywhere that you can insert TYPE_ACTIVITY_SAMPLEs but you can't read them (for example to check that your insertion worked)? They are silently converted to ACTIVITY_SEGMENTS or perhaps ignored altogether. I understand why, but it would have saved me 3 days to have seen it somewhere (like in a list of what you can read from the Fitness dataStore).
1
Add a comment...

Valentin Dalix

Bug Reports  - 
 
Hi,

Since the beginning of the month, I have a weird bug with the app. It counts correctly my steps throughout the day as long as I don't start an activity. One more time, yesterday evening I went for a 3km jogging, started the activity on the app and it only recorded 150 steps (all the other data are correct, distance, map etc...). Does that with every activity I launch by myself.

Nexus 5X (took a look at the podometer thanks to GPS toolbox, works correctly), Android 6.1 (latest June update since yesterday).

Any advice? Already factory reset, didn't change anything.

Thanks,

Valentin (sorry for my english if it's not perfect)
4
Craig Russell's profile photoИгорь Малявка's profile photo
2 comments
 
Пожалуй, Ты Прав..
 ·  Translate
Add a comment...
 
One separate question related to power management. I understand that forcing the GPS on (with ACCURACY_MODE_HIGH) is a power drain, but does sampling frequency affect the power usage. In other words, what is the relative cost of having the GPS on vs. how much you read it?
1
Add a comment...
 
What is the meaning of the circle/blob that appears on the map in a completed Google Fit activity? I have assumed it meant "coarse location" and represented the approx. location based on wifi/cell. However I am seeing the same type of blob after I've written fine-detail GPS data to the fitness store. One session will have a nice map, the next session just a blob. So is there another reason you get a blob?
1
Jeffrey Pugh's profile photo
5 comments
 
+Gouri Joshi See my bug post with data. I'd be happy if somebody could tell me what's going on.
Add a comment...