112 questions
7
votes
4
answers
16k
views
How to get step count from Google Fit REST API like Google Fit app?
I'm developing a PHP application which work with Google Fit APIs to collect daily user's step count.
I want to get my step count from "Jan 15 2015 00:00:00 GMT+0700" to "Jan 16 2015 00:00:00 GMT+0700"...
1
vote
1
answer
2k
views
Google fit permission problems
I would like to get some technical help with the google fit rest Rest API.
I am making an app that requires access to the location information and as a response for my request I am getting this json.
...
17
votes
5
answers
13k
views
Step count retrieved through Google Fit Api does not match Step count displayed in Google Fit Official App
I have developed an application that needs to display daily steps count.
To do this, I used the API available in Google Fit SDK.
All seems to be working properly, but the steps count I get does not ...
10
votes
8
answers
15k
views
Google Oauth 2.0 RESULT_CANCELED while using Google Fit api
I am trying to use google fit api in my android app. I followed this guide and created SHA-1 certificate using keytool.exe in my jdk 1.8 bin folder. I have now created Oauth Client ID.
In my app, I ...
6
votes
1
answer
2k
views
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 ...
1
vote
1
answer
3k
views
Google Fit API Activity History
I have an app that integrates with Google Fit. One of the requirements is display a users favorite activity (most frequent) i.e.: bicycling. I assume it would be done through the History API, but I'm ...
19
votes
1
answer
8k
views
Android: How to get Google Fit data from Wearable device?
I'm following the same steps described here (the Google Fit client connection part is working fine).
final DataType dataType=TYPE_STEP_COUNT_DELTA;
DataSourcesRequest requestData = new ...
18
votes
2
answers
9k
views
Obtain a new token by refresh token with google_sign_in Flutter
I'm writing an application that call google fit rest api from Flutter.
I need to sign with google using (https://pub.dev/packages/google_sign_in).
I can obtain a token without problem (see Did ...
15
votes
3
answers
15k
views
How do I retrieve step count data from Google Fitness REST api?
Since I installed the Google Fit app on my Nexus 5 it has been tracking my step count and time spent walking. I'd like to retrieve this info via the Google Fitness REST api (docs) but I can't work out ...
13
votes
2
answers
8k
views
Step Counter in Android: always on?
It is a well known issue that many Android phones switch off the accelerometer when the screen goes off. However something seems to have changed with Android Fit (the app). Fit keeps counting steps ...
4
votes
2
answers
5k
views
Getting error in google fit "Connection failed. Cause: ConnectionResult{statusCode=unknown status code 5005, resolution=null}"
I have tried to develop application using google fit. I follow This link
When i try to run that application i got the following error
10-27 11:55:19.966: I/Google Fit(6016): Connection failed. ...
4
votes
1
answer
2k
views
Google fit Recording API delay
So I'm writing a fitness application for android. I'm using the Google fit API to count the steps.
I'm using the Recording API to count the steps when the app is in the background. Once the app is in ...
2
votes
3
answers
3k
views
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
1
vote
5
answers
5k
views
Google Fit API : Get distance from google fit
How do I calculate the distance covered by the user using the google fit API?
Currently I am using google Fit History Api like this :
DataReadRequest readRequest = new DataReadRequest.Builder()
...
1
vote
1
answer
5k
views
How to get Heart Rate values from Google Fit History?
I need to get all the heart rate measurements, and not the minimum, maximum and average, which is what I have been able to get.
This is the code I use for reading from my java class.
Thank you!
...
0
votes
2
answers
2k
views
Google Fit authorization bugs (with 5005, 5000, and 5015 errors) on WatchFace, WatchConfig, and companion app
I am looking for some fresh ideas on the dreaded 5005 error: "Status code denotes that an unknown error occurred while trying to obtain an OAuth token." when my Watch Face tries to connect a Google ...
0
votes
1
answer
3k
views
How to get Sleep data from Google Fit
I want to get sleep data of previous day from Google Fit between 7pm(start time) to 11am(end time).
Using following code I get the data after midnight.
For example if Google fit has sleep time 10pm ...
53
votes
7
answers
96k
views
How is it possible that Google Fit app measures number of steps all the time without draining battery?
The Google Fit app, when installed, measures the duration you are walking or running, and also the number of steps all the time. However, strangely, using it does not seem to drain the battery. Other ...
12
votes
3
answers
30k
views
Android ACTIVITY_RECOGNITION Permission SDK 28 running on Android 10/Q (SDK 29)
My Android app targets SDK 28 and connects to Google Fit to upload data and read some other data. The app uses the HistoryAPI to read com.google.step_count.delta data.
This documentation claims that "...
7
votes
2
answers
7k
views
Google Fit API, getting calories burned per activity
So I'm trying to create an app that connects to Google Fit and shows the user their data in a pretty streamlined way and I'm having trouble finding the calories the user burned for each individual ...
7
votes
2
answers
6k
views
How to identify google fit activity is entered manually or tracked by sensor?
We are working on an Android application which queries Google Fit API to retrieve Steps, Calories and Distance parameter. We want to query activities which are NOT manually entered by user (or somehow ...
6
votes
2
answers
3k
views
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 ...
5
votes
3
answers
5k
views
Getting list of activities(Movements) from google fit api
I am creating application which can use google fit api.
I want to get all the activities(Movements) available in the google fit. Here the list of activities in google fit Reference.
Edited
I know ...
5
votes
5
answers
6k
views
Fetching Google Fit Data into android application
How can we get the data stored in google fit cloud for a specific user?
I tried using History API but no data is being displayed. Then i tried entering some data vai History api, now I could see these ...
4
votes
5
answers
6k
views
Calories expenditure using google fit api
I am working on app fitness app , for that I used google fit api . Till now I am successful in fetching steps count , distance but I am unable to get calorie expenditure .
Thanks in Advance
3
votes
2
answers
6k
views
Why Google Fit steps Counts differs
I used Sensor API for counting steps. I saw it's differs from Google Fit App. Does Google Fit app uses Sensor API other things?
Code Snippet :
Fitness.SensorsApi.add(
...
3
votes
1
answer
898
views
Android: Google Fit not finding data sources for DataType.TYPE_LOCATION_SAMPLE
I have some code that has worked for months in production which suddenly has stopped working yesterday in all my apps.
I use Google Fit to retrieve locations via the Fitness.SensorClient API.
...
3
votes
2
answers
3k
views
Google Fit Api filter manually added activities
Google Fit allows users to add activities manually and programatically. Is it possible to filter out manually or programtically added activities from either the Android Api or the REST Api?
I want to ...
2
votes
1
answer
2k
views
Android Google Fit Unable to Read Blood Pressure Value
I have tried to read Blood pressure value from Google Fit using Android code but unable to read value and returns the below logs
Blood Pressure Log:
Number of returned buckets of DataSets is: 1
...
2
votes
2
answers
3k
views
How to differentiate between manual added steps and sensor recorded steps in Google Fit Api
I am using Google Fit Api in my project to get user's daily steps. But the problem is, user can enter the steps manually by adding the activities. And when i retrieve the daily steps, Google Fit Api ...
1
vote
1
answer
2k
views
Google Fit O Auth fails with RESULT_CANCELED without showing permission page
Hi I have a android project where it reads certain data from application user's Google Fit profile. I faced a weird scenario as below. all the below are in debug mode and not in release mode.
1) ...
1
vote
0
answers
194
views
How to retrieve sleep and cycle tracking data from Google Fit to our app?
I want to get sleep and cycle tracking data from Google Fit to my app. I am aware that the API is no longer in use and we need to use the Health Connect app. I have retrieved most of the data, but I ...
0
votes
2
answers
1k
views
GoogleFit Sample Not Working
I am trying the BasicHistory Sample whis stores a data and then read it but in my case the code get stuck at the insert call.await call does not return anything i have tried using the asynchronous way ...
0
votes
1
answer
437
views
runtime error while accessing google api in android emulator
I am trying to access the googleFit API.
It seems pretty straightforward. Get the google sign-in permissions and required authorizations then query for Step count.
My code doesn't seem to work.
When I ...
-1
votes
1
answer
1k
views
Google fit API, onDatapoint method is not being invoked
I am not able to get step count. I've been stuck on getting the onDataPoint method to be called. This code is almost correct. I am not able to find why it is not showing step count.
package com....
14
votes
1
answer
1k
views
Google Fit SessionsApi not returning all sessions in time range
Somehow I've run into a dead end with the Google Fit Android SDK. Currently I'm building an application that reads, displays and processes data from Google Fit to give users insights on their workout ...
12
votes
1
answer
4k
views
Google Fit API: ApiException 17 (Fitness.CLIENT is not available on this device)
The Google Play documentation claims this is an API_NOT_CONNECTED code, however I have done everything I (think I) have to do in order to access the Google Fit API.
Attempting to use Fit API on an ...
11
votes
6
answers
10k
views
How to disable Google Fit and revoke permissions from the app itself
I've setup app that connects to Google Fit, reads and writes some data about users body. When user disables Google Fit in apps settings, I try to revoke my apps permissions for by calling:
public ...
11
votes
2
answers
7k
views
Using Google Fit APIs without Google Fit app
Can the Google Fit APIs be used without having the Google Fit APP?
I want to use the Google Fit APIs to count number of steps but can this be done without having to install the Google Fit App.
10
votes
3
answers
10k
views
Create Doughnut Chart Similar to Google Fit
Does anyone know how to create a doughnut chart similar to the one in Google Fit.
10
votes
2
answers
7k
views
Access Android Wear Fit Data
I'm developing an app for Android Wear on Samsung Gear Live (Google I/O Edition) where it will need access heart rate and steps count history data. I know that later this data might be accessible ...
9
votes
0
answers
409
views
Geting smaller buckets from GoogleFit doesn't work
I am trying to get GoogleFit data with buckets of 15 minutes for the last 2 weeks. But for some reason the call to the HistoryApi does never finish, even if I wait some minutes. When using 1 hour ...
9
votes
2
answers
2k
views
Is there a way to read daily resting heart rate from the Google Fit API?
The iOS Google Fit app shows Resting Heart Rate as one of it's metrics (I have not seen it in the Android Google Fit app, however). I would like to show Resting Heart Rate in an Android app using ...
9
votes
1
answer
3k
views
Why is my wearable not listed as DataSource in Google Fit API?
I'm trying to access the heart rate monitor of a Samsung Gear Live watch. The watch is paired with a 4.4.4 handset and works correctly. I'm following the official BasicSensorsApi sample.
I can ...
8
votes
2
answers
2k
views
Read BloodPressure and BloodGlucose dataSource from google api fitness playground
If I go to google api playground I do the following steps:
Step 1: Select & authorize APIs. I select the two scopes
https://www.googleapis.com/auth/fitness.blood_glucose.read
https://www....
7
votes
6
answers
7k
views
onActivityResult deprecated, how to handle google signin in fragment for android(Java)?
@Override **//depricated**
public void onActivityResult(int requestCode, int resultCode, @Nullable @org.jetbrains.annotations.Nullable Intent data) {
super.onActivityResult(requestCode, ...
6
votes
3
answers
5k
views
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 =
...
6
votes
1
answer
434
views
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 ...
5
votes
1
answer
2k
views
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 ("...
5
votes
4
answers
37k
views
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 ...