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
2
votes
2 answers

Google Fit Authorization : AUTH_DENIED Authorization cancelled

I need immediate help about Authorization. I cannot Authorize to Google Fit. I get AUTH_DENIED Authorization cancelled in my console. Here is what I did step by step. I am going to get crazy about it. This is my function where I am trying to…
2
votes
0 answers

Fetch data from Google FIT API to crossplattform-App (using Xamarin,VisualStudios, C#)

I hope there is someone here who could help me: Due to a project for the university I'm trying to implement a cross-platform app (using Xammarin&Visualstudios&C#). We want to send vitaldata (like steps, pulse, ecg, etc.) from our Smartwatches to the…
UnyRed
  • 21
  • 2
2
votes
1 answer

Huawei Watch 2 sleep sessions are not in Google Fit Api sleep endpoint

We have an application, which connects to Google Fit, and we obtain user sessions, such as sleep activity (activity = 72). We have this application running every day, for more than two years, with about 15.000 users, working seamlessly. We…
Sandra
  • 21
  • 2
2
votes
1 answer

How to get userId for Google Fit API?

How to get userId for getting the activity data of the user from google fit API. GET https://www.googleapis.com/fitness/v1/users/userId/dataSources/dataSourceId I can able to get my data by replacing userId with me but I want to create an…
2
votes
0 answers

Not getting Calories from google fit sensor API. What all data types does sensor API supports?

I am not Getting calories from Sensor API. However, sensor API is returning data for Location Sample and Steps count. Also, is there any way of getting live data of session which is still going on? Here is my code …
2
votes
3 answers

Google sign in "Choose an account to continue" loop

I'm trying to implement the following packages with my Flutter app: https://pub.dev/packages/permission_handler https://pub.dev/packages/fit_kit and I've done so by writing the following two functions: Future checkPermissions() async { var…
2
votes
0 answers

Android/Google api : can't get the choosen account

Im trying to connect to google fit from my android app. but before doing that I need a connected account. But even if the user select an account the resultCode==0 and I get developer_error as an error. Here is my code ConnectClass val gso =…
DojaB
  • 61
  • 3
1
vote
0 answers

Do I need to grant location permissions to access historical Google Fit distance/miles data on Android?

I am building a React Native application and would like to use Google Fit's distance data to get users' data historically for their miles travelled every day after signing in with their Google account. I am currently using the library…
1
vote
1 answer

Runtime Error: This app can't access Health Connect

I'm a developer on a fitness app that is trying to integrate with Health Connect, I followed all the API specs and got it working on my test phones, and if I install it on my phone via the Internal Testing channel on Google Play. It works great.…
Ana
  • 67
  • 5
1
vote
0 answers

How to get distance data from the google fit Rest API for the specific activity and specific start and end time in iOS?

Here, i want covered distance, when i select Date, start time, end time and any activity like "Swimming", then i wanna get covered distance for selected date, start and end time. I have tried to get distance from activity, but there's getting only…
1
vote
0 answers

Google Fit Running data

I am using Google API Client for fitness to retrieve user fitness data using the PHP Client library. My usecase: To get users Total run time for the day, and also distance. I am using the following code (sample code with key steps): $service = new…
Game
  • 21
  • 1
1
vote
1 answer

How to get google fit app data using google fit api in php?

I want to integrate google fit api in Php Laravel framework.Please Let me know how can i synchronize google fit app data in my php website ?
developer
  • 23
  • 3
1
vote
1 answer

How do I filter out step count that user input manually from Google Fitness REST API

I can now retrieve step count data from Google Fitness REST API. https://www.googleapis.com/fitness/v1/users/me/dataset:aggregate However, I can't tell which data is reliable (data not generate by user input). After some research I found there is a…
1
vote
0 answers

Get all activities and activities info from Google Fit Rest API

I want to get all the activities registered in my google fit account between two dates (automatically registered ones such as walking and the rest) with all their information. I have spent some hours reading the Google Fit Rest API documentation,…
Jaime
  • 181
  • 2
  • 19
1
vote
0 answers

Google fit permission check returns true even when disconnected

So I use the following to check if google fit has established a connectiong if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { (ContextCompat.checkSelfPermission(requireActivity(), Manifest.permission.ACTIVITY_RECOGNITION) …
Cate Daniel
  • 724
  • 2
  • 14
  • 30