Questions tagged [google-fit]

Google Fit is an open platform that lets users control their fitness data. Use this tag for questions about programming apps that interface with Google Fit or use any of its APIs or SDKs. General end-user support is off-topic.

Description

Google Fit is an open ecosystem that allows developers to upload fitness data to a central repository where users can access their data from different devices and apps in one location:

  • Fitness apps can store data from any wearable or sensor.
  • Fitness apps can access data created by any app.
  • User's fitness data is persisted when they upgrade their fitness devices.

References

967 questions
6
votes
1 answer

How to remove a permission added because of Google Fitness API 7.5.0

After updating my play-services-fitness api from 7.0.0 to 7.5.0 I noticed that when I go to upload a new build to the PlayStore it tells me that I am adding a new permission and 2 new features. I did not do this! What the heck.
astryk
  • 1,256
  • 13
  • 20
6
votes
1 answer

GoogleApiClient class not found

I'm trying to use google fit api for getting step count. I'm using the starter guide When i try to paste the code private GoogleApiClient mClient = null; Android studio can't find the "com.google.android.gms.common.api" package and the …
ilan
  • 4,402
  • 6
  • 40
  • 76
6
votes
1 answer

List of voice commands which trigger heart rate check

What is the list of all existing voice commands which create an intent with vnd.google.fitness.VIEW action and vnd.google.fitness.data_type/com.google.heart_rate.bpm mime type? The documentation shows only two of them: "OK Google, what’s my heart…
EyesClear
  • 28,077
  • 7
  • 32
  • 43
6
votes
2 answers

Android Google Fit onConnectionFailed() SIGN_IN_REQUIRED

I can't seem to get round this issue. I just cannot sign in. I'm running the BasicSensorApi sample file and it just will not connect. It seems i'm getting RESULT_CANCELED even though i select an account on the dialog? Here is the end of my logcat…
Matt
  • 1,368
  • 4
  • 16
  • 32
6
votes
2 answers

How to get the user's current speed using Google Fit's API?

Working with the Google Fit API at the moment and having a bit of trouble with the Sensors API. I'm trying to get user's current speed for my app's workouts but the documentation is a bit confusing. In this code snippet is an example from Google's…
AndroidDevM10
  • 141
  • 2
  • 12
6
votes
3 answers

Add/Read weight and height in GoogleFit? Android

By Google, I got this code to insert DataType.TYPE_STEP_COUNT_DELTA. but how to insert TYPE_HEIGHT AND TYPE_WEIGHT using Android com.google.android.gms.common.api.Status insertStatus = Fitness.HistoryApi.insertData(mClient,…
Vinod Joshi
  • 7,696
  • 1
  • 50
  • 51
6
votes
1 answer

Google fit data is different from device to device with same account

I have created a Google Fit application to read/write data from Google Fit. I have two devices linked to the same account, but I cannot see the data added from one device to another. How is this fixed?
Rakki s
  • 1,426
  • 1
  • 18
  • 42
5
votes
0 answers

Flutter Health Package (4.3.0) D/FLUTTER HEALTH(21559): Access Denied

User encounters "D/FLUTTER HEALTH(21559): Access Denied!" error after selecting the mail to connect to "Google Fit" Package for me it's only working in test mode. when I set the project to production mode, it stops working. do you have a solution…
5
votes
1 answer

Can I write data to Apple HealthKit/ Google-fit in Flutter using Dart

I am using flutter_health plugin for reading data from apple healthkit. Now I am thinking to write data as well. I am not getting APIs to write data on Apple health. Please help me to know if there is any platform in flutter to write data on Apple…
Ash
  • 5,525
  • 1
  • 40
  • 34
5
votes
1 answer

Caused by: java.lang.IllegalStateException: Must specify a valid bucketing strategy while requesting aggregation

I get this error while I am creating a read request object DataReadRequest class. java.lang.IllegalStateException: Must specify a valid bucketing strategy while requesting aggregation I did refer to above question but it is not helpful for me as I…
nav_jan
  • 2,473
  • 4
  • 24
  • 42
5
votes
0 answers

how to read step count each month from google fit?

I want to read step count data each month from google fit, but the Google fit API is not supported by TimeUnit.YEAR, see: new DataReadRequest.Builder() .aggregate(DataType.AGGREGATE_STEP_COUNT_DELTA,…
韩建飞
  • 81
  • 5
5
votes
1 answer

Getting active time from Google Fit Rest API

I am struggling with matching the "active time" returned by Fit REST API with reality. As an example - on 12/14 I had two walks, about 45 minutes each. The api returns one of them as type 7 ("walking" - right!) and another one as type 0 (in vehicle…
AlexR
  • 240
  • 1
  • 11
5
votes
1 answer

Unity3d Application crashes when use Android plugin

I am following this tutorial to make a step counter and it works well as an android project but when I make the android project a library and want to use it in unity3d, it is crashing and giving me an error class not found: exception My unity code…
5
votes
4 answers

How to call the function from other node js file

These codes are stored in separate file and I tried to call the get method from this file to another nodejs, but I am getting only [Function] as a out put. Can any one tell me how to call the get method from this file to another node js file 'use…
VG__
  • 533
  • 2
  • 6
  • 16
5
votes
1 answer

Reading weight with Google Fit

I can connect to Google Fit and read weight data but not all the data that I can see in Google Fit Web. I believe that something is wrong with datasources but I'm not sure. The code for reading is: Instant endTime = Instant.now(); Instant startTime…