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
13
votes
3 answers

Exception while trying to access Google Fit API - The user must be signed in to make this API call

I am trying to set up a wearable app (for Huawei Watch 2) running on WearOS to provide a sort of continuous feed of Heart Rate (BPM) into a Google Fit account, which is read into another smartphone application. The issue comes when I am trying to…
Raul Acu
  • 171
  • 1
  • 8
12
votes
1 answer

Fetch Google Fit history same way Google Fit app does (Google Fit auto recorded activities)

I'm trying hard to display same history of activities as Google Fit app does. I do just fine with sessions, but I just can't grasp the auto-recorded activities properly. Like these two top walks in the example. I think everything goes down to the…
Jacek Kwiecień
  • 12,397
  • 20
  • 85
  • 157
5
votes
1 answer

Pedometer with Daily steps counter using flutter

I am trying to build a basic fitness app using flutter. The app has two main features: Daily steps counter graph of historical data (number of steps each day) I use the pedometer plugin to retrieve data from the sensors of the phone. My problem is…
Ron Badur
  • 1,873
  • 2
  • 15
  • 34
4
votes
1 answer

Weekly Steps Retrieved through Google Fit Android API doesn't match with steps displayed in Google Fit Official App

I am trying to retreive user's weekly steps data from google fit API but I am getting different steps count result from official google fit App data. for example : steps retrieved through google fit api for thursday are 5244 while in official google…
4
votes
1 answer

Flutter - Health package not loading STEP data

I've used health-3.0.3 in my flutter application to get the Google fit data. I'm able to get every data other than STEP-data which shows zero always. You can refer to the health package here Health 3.0.3 Flutter This is the code block to access the…
4
votes
1 answer

Google fit API add multiple data type based on scope

I am using google fit API with multiple user scopes. How can I add multiple data type for each source. If possible, why I cannot add this as a datasource. { "dataStreamName":"MyDataSource", "type":"derived", "application":{ …
draw134
  • 1,053
  • 4
  • 35
  • 84
3
votes
2 answers

CURL Succeeds, but CFHTTP Gets 404 Accessing GoogleFit API Endpoint: /fitness/v1/users/me/dataset:aggregate

This is seriously driving me nuts!! The exact same request succeeds when I format it as a curl statement, but gets a 404 when using cfhttp to make the request. Coldfusion
Chris Geirman
  • 9,474
  • 5
  • 37
  • 70
3
votes
0 answers

How to get historic distance date from Google FIT in android?

I am trying to get historic distance data of a user by passing a start time and an end time to google FIT android API. I am posting this query after checking all the related article available in stack overflow. /** * Returns a {@link…
3
votes
3 answers

Google Fit OAuth page on Android stuck at loading sign after select account

I'm developing with google fit api on Android. I setup my project followed the guide from google doc. But when I test auth on real device, it will show a white page with the loading sign after I select my google account like the image. It just…
Shuai
  • 41
  • 3
2
votes
2 answers

Fatal error: Uncaught Google_Exception: Invalid client secret JSON file. in /somepath/lib/vendor/google/apiclient/src/Google/Client.php

I have create an OAuth 2.0 Client IDs that looks like this when i download the json: { "web": { "client_id": "topsecretstuff.apps.googleusercontent.com", "project_id": "health-42", "auth_uri":…
2
votes
0 answers

Google Fit steps do not match with History Api response

Got a problem with Google Fit steps integration. The customers complain that the numbers imported from the Google Fit are not the same as the ones Google Fit shows in its own Fit app. As per Google Fit documentation “to get the same daily step count…
2
votes
0 answers

Google FIT API Request not working - no data returned

My Goal: I wanted to retieve my Step Counter data from Google FIT API with a small Android App. Therefore I tried the tutorial code: I implemented the log in code which is necessary to use Google FIT…
2
votes
2 answers

Verification issue with GCP Project. Google says the project is still in "development or staging app" but its not

I'm building a mobile app which uses Firebase products and Google Sign in. I don't have GCP project except the Firebase. And I want to use Google Fitness API but permission screen says "App is not verified by Google". I'm trying to verify the…
mirkancal
  • 4,762
  • 7
  • 37
  • 75
2
votes
0 answers

Google fit rest apis giving incorrect steps count

I'm developing a web application which requires to fetch user's steps count fromt Google Fit periodically. I went through the API docs and found the REST End Point : https://www.googleapis.com/fitness/v1/users/me/dataset:aggregate which gives the…
Divyansh
  • 41
  • 5
2
votes
0 answers

Google oAuth Google Fit

I'm trying to implement Google Fit, in a school project. I am using the documentation released by Google but it does not work. I am getting 403 bad request error Is it possible because I am using XAMPP to try to connect, it gives me an error? I have…
Francesco Tozzi
  • 415
  • 1
  • 3
  • 12
1
2 3 4 5 6 7 8