Questions tagged [google-fit-sdk]

An open platform that lets users control their fitness data. Google Fit lets developers build smarter apps and manufacturers focus on creating amazing devices.

About

Google Fit's open APIs allow any connected apps and devices to seamlessly share data, all of which gets sucked up by Google Fit.

Links

Official Page

263 questions
2
votes
0 answers

OAuth2 Google Fit Consent Screen Infinite Loading

I'm interested in trying out the Google Fit API on Android to get some data from sensors, but I can't test it out due to the OAuth2 screen loading infinitely. What I've done: Enabled the Google Fit API on the automatic Firebase-generated Google…
Timothy
  • 143
  • 3
  • 12
2
votes
0 answers

How to check if my Android App is Disconnected from Google Fit App

I've disconnected manually my app from Google Fit App -> Manage connected apps -> my app -> Disconnected as stated at Google Support. Now I want to know is there any way to know connection status on my app when I start it?
Shashi Patel
  • 72
  • 10
2
votes
0 answers

How to get user timezone so we use it with Googlefit REST API?

When using Googlefit REST Aggregate API, we need to send startTimeMillis and endTimeMillis to get user's step data, for example. { "aggregateBy": [ { "dataTypeName": "com.google.step_count.delta", "dataSourceId":…
Jordi
  • 160
  • 1
  • 9
2
votes
1 answer

Google fit aggregate rest api call issue parse error javascript

I am calling the google fit rest api as following const requestBody ={ "aggregateBy": [{ "dataTypeName": "com.google.step_count.delta", "dataSourceId": "derived:com.google.step_count.delta:com.google.android.gms:estimated_steps" …
Athif Shaffy
  • 692
  • 3
  • 10
  • 22
2
votes
0 answers

How to get Weight unit from google fit response

I am trying to get weight from google fit using DataReadRequest with bucket time. I am able to get weight data like below and store data in my collection. /** * Method is use to read google fit response and store in collection * * @param…
Vishal Thakkar
  • 2,117
  • 2
  • 16
  • 33
2
votes
1 answer

Google Fitness: Dealing with TransactionTooLargeException without feedback

I'm building an application integrating with Google Fit via the local (not REST) Google Fit API. I'm using Flutter 1.2.1, Kotlin 1.3.21, com.google.android.gms:play-services-fitness:16.0.1 and running the app on Android 8.1.0 with Google Play…
Tomasz Noinski
  • 456
  • 2
  • 10
2
votes
0 answers

Google Fit: Getting the full list of available DataSources for the HistoryClient Android API

I want to read data using the History API, using the "local" Google Play Fitness API (com.google.android.gms:play-services-fitness:16.0.1), and I'd like to get the data from all sensors, not just the default sensor. DataReadRequest requires a…
Tomasz Noinski
  • 456
  • 2
  • 10
2
votes
1 answer

Using firebase google auth and google fit api with single OAuth2 token

I am currently working on a simple web app that will make an GET call to a user's google fit data. To reduce the complexity of the app, I plan to host it on firebase and take full advantage of cloud functions, firestore and the authentication…
William Chou
  • 752
  • 5
  • 16
2
votes
2 answers

Steps Data receive from History api is not matched with google fit

I want google fit steps count in my application, for that I am using History api, provided by google. I found that steps receive from history api is not matched with google fit even if i used same code provided by google. Below is my code. …
Harsh Trivedi
  • 1,012
  • 8
  • 25
2
votes
1 answer

Google Fit API: Store heart rate bmp datapoints

I'm trying to implement Google Fit into my app, but I'm having trouble with the permission to store heart rate bpm datapoints. At first I only tried to insert activity, speed, distance and step rate data and that worked. But as soon as I added the…
TheNetStriker
  • 67
  • 1
  • 5
2
votes
0 answers

Steps is updated with too much delay when read from Google Fit History

I'm writing an app using Google Fit Recording and History API. Do everything same with its docs, and realize that it's worked. However, when I do read History every 30 seconds, the steps does not update as quick as I expect. Suppose, in 30 seconds,…
NamNH
  • 1,752
  • 1
  • 15
  • 37
2
votes
1 answer

Ble Api sample for Xamarin.Andorid

I am trying to connect Polar H10 to my xamarin android app using Ble Client https://developers.google.com/fit/android/ble-sensors I have searched online for any samples for xamarin android but in vain. Does anybody have any idea? I initialize the…
2
votes
0 answers

Unable to connect Bluetooth fitness tracker with google fit sdk

Every time i got no result found also added failure listener to it but it never called GoogleSignInAccount googleSigninAccount =GoogleSignIn.getLastSignedInAccount(this); int timeoutSecs = 12; List list =…
Muhammad Aqeel
  • 81
  • 1
  • 11
2
votes
0 answers

how often the Google Fit sync data between different devices and how they sync?

Say I login the same google account on two devices, both are tracking my steps via Google Fit. How often the Google fit sync the steps between these two devices? If one device recorded 100 steps, while another recorded 200 at the same period, they…
ChanX
  • 61
  • 4
2
votes
0 answers

Why doesn't Google Fit distance match fit app?

The google fit faq states that in order to match the distance and step values of the official google fit app, we should be using the following data request DataSource ESTIMATED_STEP_DELTAS = new DataSource.Builder() …
Naveed
  • 2,942
  • 2
  • 25
  • 58