Questions tagged [google-fit-api]

The Google Fit REST API enables you to store and access user data in the fitness store from apps on any platform.

The Google Fit REST API provides resources and methods to:

  • Create, obtain, list, and modify data sources. A data source represents a unique source of sensor data. All fitness data in the fitness store is associated with a particular data source.

  • Create, obtain, aggregate, and delete datasets. A dataset represents a set of data points from a particular data source.

  • List data points and add them to a dataset. A data point represents a sample from a particular data source.

  • Create, list, and delete sessions. A session represents a time interval with associated metadata.

116 questions
0
votes
1 answer

Google Fit Historical API does not give a response

I am trying to retrieve Heart Bit data for a certain time range. I am breaking up a time range into several smaller time ranges for example each one day long. So, if I requested data for the last 5 days it would provide 5-time ranges. All that data…
0
votes
0 answers

Google fit api heart rate android studio

Is it possible to fetch heart rate in android studio thanks google fit api? I have tried to catch data like step using fitnessOptions and than using Fitness.getHistoryClient. Can I catch heart rate in the same way or ther's something else to do?
Cris
  • 1
  • 1
0
votes
0 answers

Timezone of Google Fit API sleep session

I am working with the Google Fit API and have managed to figure out how to get sleep sessions and sleep detail. However all the times are in milliseconds since the epoch. How can I find out what the user's local time was when they woke up or their…
David Tinker
  • 9,383
  • 9
  • 66
  • 98
0
votes
1 answer

updateData() vs insertData() in Google Fit

I'm building an Android app which syncs data to Google Fit and uses the Google Fit SDK to achieve that - but I'm pretty sure my question also applies when you are using the REST API. Within my app users can also change data inserted to Google Fit.…
ubuntudroid
  • 3,680
  • 6
  • 36
  • 60
0
votes
0 answers

Google Fit - Lost Connection to Data

Recently, we somehow lost connection to Google Fit data, and it seems only uninstalling and reinstalling the app will help us to gain connection, again. Even updating the app doesn't solve the issue. For background: we do check permissions and we…
Allen
  • 794
  • 1
  • 6
  • 19
0
votes
2 answers

How to build Android app in release mode? GoogleFit: RESULT_CANCELED

Can anyone tell me how to build my app in release mode? I'm having issues getting to the permissions screen on my android (java) application, I keep getting GoogleFit: RESULT_CANCELED error and then activity closes. Another user suggested building…
Caitlin
  • 531
  • 5
  • 19
0
votes
0 answers

RESULT_CANCELED error returned onActivityResult method?

I am trying to set up Google Fit API for a university project, however I have just noticed I am getting an error after choosing a Google log-in RESULT_CANCELED. I have read some other forum pages and tried a few solutions: Changing keystore to…
Caitlin
  • 531
  • 5
  • 19
0
votes
0 answers

Google fit rest api request

when I request on google fit rest api the steps count the only steps I see are the value user_input, and then the Google Fit App write on google fitness store or not?
0
votes
1 answer

GoogleFit can't get back calories from API

I 'm having trouble with the GoogleFit API where I can get the steps back but I cannot get the Calories. Here is the URL I am making a POST to : https://fitness.googleapis.com/fitness/v1/users/me/dataset:aggregate Here is the body in JSON: { …
mick1996
  • 516
  • 9
  • 31
0
votes
1 answer

Google Fit estimated steps through REST API decrease in time with some users

We are using Googlefit REST API in a process with thousands of users, to get daily steps. With most of users, process is OK, although we are finding some users with this specific behaviour: users step increase during the day, but at some point, they…
Jordi
  • 160
  • 1
  • 9
0
votes
1 answer

DataSource for the location in google fit Rest API

What is the data source for location in the google fit rest API? I'm not able to find any data sources for location. I want to access the location from the google fit application. Does anybody know how can I access a datasourceID for location? I…
0
votes
1 answer

sync permissions with an android app Google-Fit

I'm creating an app with android studio and I'm using the Google Fit app to sync the two to get some measurements through Mi-Fit. problem is that the getting permissions window isn't popping in my phone and I can't figure out why. this is my…
Manspof
  • 598
  • 26
  • 81
  • 173
0
votes
1 answer

How to register a run on Google Fit via Flutter

I would like to know how to record a running workout on Google Fit via Flutter. More specifically, a treadmill workout. How do I do that? I tried to read the Google Fit API documentation, but I couldn't understand it. Thanks.
0
votes
1 answer

Confusion with ContextCompat.checkSelfPermission and GoogleSignIn.hasPermissions

I am carefully following Google's docs about getting historical steps from Google Fit: I've added the permission in the manifest: I am checking if the user has permission…
Yaron Levi
  • 12,535
  • 16
  • 69
  • 118
0
votes
1 answer

How to get weekly Google Fit Rest API data

I am trying to get my weekly aggregated step count from Google Fit using their REST Api following their documentation but the point data is coming back empty. I have enabled read location and activity scope for the access token. My code : import…
Oleg
  • 31
  • 6