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

Custom DataTypes not synching between devices

I am trying to use the Google Fit API to store custom dataTypes. I am able insert, and retrieve them fine on a single device, but when I log into the same Google account on a different device the data is not there. I can create and retrieve data…
Lewis Rhine
  • 144
  • 2
  • 7
2
votes
1 answer

How to get the activity name from activity code in google fit

I am working with google fit . I have activities int value, I want to get the name of the activity from int value.
Rakki s
  • 1,426
  • 1
  • 18
  • 42
2
votes
3 answers

Unable to Connect To GoogleFit

I am trying to connect to Googlefit but i am getting a strange error code as below E/GooglePlayServicesUtil﹕ Unexpected error code 5005 Does anybody have any idea about this.Thanks In advance
Pravin yadav
  • 567
  • 1
  • 6
  • 16
2
votes
3 answers

How to scan for BLE device using Android Fit SDK? I'm getting and interface mismatch error

I followed the code from the sample (https://developers.google.com/fit/android/ble-sensors) but I get the following error. private void buildFitnessClient() { // Create the Google API Client mClient = new GoogleApiClient.Builder(this) …
user235273
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
1
vote
0 answers

Steps sync to wrong day when I bucketByTime with TimeUnit.DAYS as 1

We have several customers reported this kind issues, for example, a user have 1,361 steps at day 11/17/2021, but 0 steps at 11/18/2021, but the google's app "google fit" shows 149 steps at 11/17 and 1,212 steps at 11/18. we read log to see a…
1
vote
0 answers

Flutter Health Plugin "Authorization not granted" in Foreground Service Function

I am trying to create an app about periodically fetching step data from Google Fit API and send that data to custom API. So far everything is ok and works fine while app is open. Then I wanted to make these things happen even if i kill the app. For…
1
vote
3 answers

Google Fit API SleepSession returns empty sleep sessions array Kotlin

I'm trying to read sleep data from Google Fit. The sessionsClient reads from Fit successfully, however, it does not return any sessions in response.sessions even though there are sleep sessions logged in Fit. Due to the API update being relatively…
1
vote
3 answers

Do I have to update Google Fitness SDK v20 before April 27th even if we use only using read-only?

Will apps that only use the Google Fitness SDK to read steps be affected by the April 27th specification change of Google Fit? We build by v11.8.0, do we need to change to v20 and distribute to the Google Play Store before the April 27th? If I don't…
1
vote
2 answers

No Datasources for `DataType.TYPE_HEART_RATE_BPM` even when watch connected

I have a wearable device where Google Fit is connected with the same account as of my phone. The wearOS device is also connected to my phone. However the following code returns no data sources corresponding to the DataType.TYPE_HEIGHT,…
Arka Prava Basu
  • 2,366
  • 3
  • 18
  • 34
1
vote
0 answers

Android Google Fit Integration is erratic and results in sign-in required error

I have a already working code in production version of my app that allows me to integrate Google Fit. My app uses Google Fit to record user's activity sessions. Here is the config GoogleApiClient.Builder builder = new…
Big O
  • 417
  • 1
  • 5
  • 14
1
vote
0 answers

Android: How can I access fitness data from Mi Band 4?

I want to work with the number of steps collected directly from the band. I have tried using the native Bluetooth Low Energy methods (BluetoothGattCharacteristics etc) but I get a PERMISSION_DENIED when trying to access the data. I have also tried…
Uday Vig
  • 21
  • 6
1
vote
1 answer

How to get Heart points in google fit REST API

I am trying to get heart points from google fit REST API. I see that heart rate data in google fit app (110 bmg) but i am getting empty data through the API. API: https://www.googleapis.com/fitness/v1/users/me/dataset:aggregate BODY: { …
TheDeveloper
  • 1,127
  • 1
  • 18
  • 55