956 questions
-1
votes
1
answer
75
views
Google Fit and Health Connect sync
I have a mobile app that retrieves data for steps and distance from google health connect.
The app reads data correctly but google fit doesn't sync automatically with health connect until i open ...
0
votes
0
answers
70
views
How to get Google Fit steps via Health Connect
I am creating an Android app that uses the number of steps obtained from Googlefit.
Due to the discontinuation of the Googlefit API, I have changed the way I obtain the number of steps from Googlefit ...
0
votes
0
answers
87
views
Google Fit API - Health Connect | Smooth transition
I have an app that reads step data from the Google Fit APIs that are being deprecated in 2025, and am looking to make the transition to using Health Connect.
I can access Health Connect with no ...
0
votes
0
answers
31
views
How to get health API data of android user from google
how can I get details of user using health care app in android
I have created one Project into Google Cloud Console and have authorized with OAuth 2.O authentication and get client Id and client ...
0
votes
1
answer
313
views
How to Determine if Google Fit and Health Connect are Synced?
I have already synced my application with Health Connect.
Google Fit is synced with Health Connect (I can retrieve step count data correctly).
If I manually unsync Google Fit from Health Connect, the ...
1
vote
0
answers
102
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
0
answers
117
views
Easiest way to gather users' step (health) data from Apple Watch to web service
I work in healthcare research. We have a study going on that uses Garmin devices to track subjects' total steps during the day. It was pretty simple for us to implement by creating a REST endpoint in ...
0
votes
0
answers
240
views
Health connect not returning data without google fit
So ive written the bellow code and im running it on my Android 14 but i dont seem to be able to get any data. As soon as i installed google fit as well thats when i got all the data. Can anyone tell ...
0
votes
0
answers
32
views
Hi Where can I find a sample Google fit data directly after it being exported and some info about data export
I am working on a project and I need participant to export the health data (fit app.) I use an iPhone which only has one health app and exporting it is kinda easy, but I am not sure with Android. I ...
0
votes
0
answers
152
views
Issue with Fetching Google Fit Data on Different Accounts & Devices in React Native App
I'm working on a React Native app that uses Google Fitness API to fetch step count, distance, and calorie data. I'm using the react-native-google-fit and @supersami/rn-foreground-service packages. The ...
1
vote
1
answer
102
views
Google Fit Sdk throws error 403: access denied while log in
While users are trying to connect the app with Google fit API, they are getting a popup in which says:
Access blocked: app has not completed the Google Verification process
Error 403: access_denied.
...
2
votes
2
answers
274
views
Does Google OAuth no longer review Fit API Scope?
We are proving a service using the Google Fit API to our customers for 3 years,
but currently the service is not working because we did not request the necessary OAuth Scope change within the deadline....
0
votes
1
answer
45
views
How to port "com.google.android.gms.fitness.service.FitnessSensorService" to Google Health?
After deprecation of Google Fit APIs i'm wondering how to port a "com.google.android.gms.fitness.service.FitnessSensorService" to Google Health?
My use case is a third party BLE device ...
0
votes
1
answer
93
views
SHA-1 with google API
I'm trying to create an Android project and I'm having trouble finishing it due to an issue. Currently, within the project, I'm using Google authentication to concurrently utilize the Google Fit ...
3
votes
1
answer
1k
views
Replacement for Google Fit REST API with new Health Connect?
I have a website where my fitness stats can be publicly seen.
In order to achieve that, I've used the Google Fit REST API, but now I see that it's gonna be removed in 2025, stating you gotta migrate ...
0
votes
0
answers
73
views
How to read floors climbed?
How to read floors climbed using HealthConnect and GoogleFit? As I see, GoogleFit does not write any data into FloorsClimbedRecord.
I tried to use FloorsClimbedRecord to read climbed floors but ...
0
votes
0
answers
51
views
Get data sleep duration from goole fite with Fitness API
`How do I calculate the duration of sleep I get from Google Fit.
this is an example of json from google fit the code
"session": [
{
"id": "healthkit-0B3E9A38-694F-...
0
votes
0
answers
31
views
Unable to Fetch Steps with Minute Interval in Android
When attempting to fetch steps with a minute interval using the getSteps function in Android, the code execution stops at the getSteps method without any error being logged.
I am using @ovalmoney/...
0
votes
0
answers
20
views
Limit records of data heart rate from google fit
DataReadRequest.Builder()
.read(DataType.TYPE_HEART_RATE_BPM)
.enableServerQueries()
.bucketByTime(1, TimeUnit.MINUTES)
.setTimeRange(startTime, ...
0
votes
0
answers
107
views
Android Fitness SDK gets stuck executing historyClient.readData [android.os.DeadObjectException logged] [Pixel 6a Android 14]
I have a react native app with an android native java module that accesses my local Google Fit healthstore using the Java Google Fit SDK:
DataReadRequest readRequest = new DataReadRequest....
0
votes
0
answers
64
views
This app is blocked screen after trying to receive steps read data
I've been using the google SDK for a while to receive the steps. It was working alright, there was no verification needed and also that screen wasn't shown to the users. From yesterday I got This app ...
0
votes
0
answers
51
views
Can't access Google Fit sleep data. Always 403
I'm trying to access Google Fit api sleep data. No matter what I try I always get a 403 stating that I don't haver permission. I've looked into documentation and I've added all Fit scopes into the ...
0
votes
0
answers
49
views
How to submit your mobile app for sensitive scope review to Google?
Our mobile app requires sensitive scopes (Google Fit). It's all setup and implemented. We're going back and forth with the review team now for 2 weeks because they can't access the application.
How do ...
1
vote
0
answers
439
views
Issue fetching workout data using health package in Flutter on Android
I am currently working on a Flutter application where I'm utilizing the health package (version 8.1.0) to fetch steps and workout data from the user's device.
The steps data retrieval works seamlessly,...
0
votes
0
answers
71
views
Fetch sleep data from google fitness api by service account
I want to retrieve sleep data using the Google Fitness API through a service account, and I have already configured OAuth 2.0 and the service account. However, I am still unable to access the sleep ...
0
votes
0
answers
120
views
OAuth2 authorization for the Google Fit Rest API from Android app
I have an Android app that is reading Google Fit data using the Android API. Since this API is being deprecated I am now trying to switch to accessing the data from Google Fit Rest API instead.
...
0
votes
0
answers
189
views
Flutter Health plugin fetch workouts in android
I'm struggeling to fetch WORKOUTs with the flutter health plugin. I can establish a connection to google fit and I get STEPS but no WORKOUTs.
I tried it with version 6 and 7 of the plugin (https://pub....
0
votes
1
answer
178
views
Unable to get steps on flutter app properly with google fit api
We are developing an application on flutter and using google fit api on it. App needs physical activity permission on devices but it doesn't work properly on android 14 version (OneUI 6.0) at Samsung ...
1
vote
0
answers
46
views
Integrating Google FIT API: Handling Multiple Scopes in Initial Authorization Request
I'm currently working on integrating the Google FIT API into my JavaScript application, and I'm encountering an issue when trying to include multiple scopes in the initial authorization request.
The ...
1
vote
0
answers
105
views
Steps counter using Google Fit in react native
I'm using react-native-google-fit library to fetch user steps in react native it's working fine but I have a question why it's not work if user have not installed google fit app in its device
it only ...
0
votes
1
answer
753
views
Inquiry Regarding CASA Verification Process for my flutter Application
We have used Google Fit API in our Flutter app for collecting user steps data. We have used the "health" package and during the development phase, there was an option to add test accounts ...
0
votes
1
answer
21
views
Add Nutrition Data response - invalidArgument "Mismatched value count"
I am working with the Google Fit API to add nutrition data and following their Add Nutrition Data Guide.
I'm making a PATCH request with the following payload:
{
"minStartTimeNs": ...
0
votes
0
answers
81
views
Is it possible to collect Apple Health/Google Fit data when app is backgrounded or killed?
We have an app where challenges are implemented (Get 5k steps, etc.) that gets data from Apple Health/Google Fit. Is it possible for the app to collect health data even when backgrounded or killed, ...
1
vote
0
answers
479
views
Filter HealthConnect activity source
I use HealthConnect to get data about user steps over a certain period of time.
For more security, I filter the activity source using the data originFilter field in AggregateRequest. Thus, the data ...
0
votes
1
answer
357
views
Is there any way to count the stairs climbed up with a smartphone?
I am working on a delivery app that the company charges clients based on the number of stairs that the delivery agent has to climb.
It's probable that the agent cheats and collects the stair fee in ...
0
votes
0
answers
100
views
Google OAuth verification process is not clear
During Google OAuth verification process, Google requires some actions, that are not clear, since only links have been provided with general content as shown below:
Comply with Limited Use ...
0
votes
1
answer
822
views
Is there a good way to get the daily step count in real-time on an Android smartphone?
I was trying to get the daily step count using the Google Fit API. However, as Fitness.getHistoryClient has been deprecated, I had to look for another method. On https://developers.google.com/android/...
0
votes
1
answer
59
views
Google fit api returning empty bucket while fetching last week data
I am trying to fetch step count data of last week or last 7 days. I am getting the empty list of bucket which holds the data.
//Check how many steps were walked and recorded in the last 7 days
...
1
vote
1
answer
3k
views
Retrieve step count and sleep data for a flutter based project on Android and iOS
I'm working on an application in health & fitness space and one of the requirement is to retrieve activities data (step count and sleep data to begin with) from wearables.
My understanding is that ...
0
votes
1
answer
105
views
Google Fit API returns no distance for biking activity
Version:
implementation "com.google.android.gms:play-services-fitness:21.1.0"
Client definition:
GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestEmail()
...
1
vote
1
answer
400
views
Is there any way to get calories consumed data from Google Fit on Android and Health on iOS using Flutter?
I'm using the Health package for Flutter and can get steps data from both devices but there doesn't appear to be a way to get calories consumed.
Is there any way to get the calories consumed data from ...
0
votes
1
answer
214
views
Google Fit Api: Move Minutes Count
I am working with google api to export my Google Fit data to a Google Sheet. I have managed to get the Step count, calories, distance and heart points data exported correctly. However, I am not able ...
0
votes
1
answer
62
views
R httr package to point external browser
I have a script that request Google authentication for GoogleFit API usint httr package:
library(httr)
library(RGoogleFit)
google_client <- gargle::gargle_oauth_client_from_json("...
0
votes
1
answer
732
views
How to read activity GPS track from Health Connect?
I'm building a Kotlin project in Android Studio and having troubles grabbing GPS data from Health Connect. I went for a walk, synced my FitBit to Health Connect, and now I'd like to grab the GPS Track ...
0
votes
1
answer
374
views
Access blood pressure data from Google fit rest API
I am using the Google Fit REST API to retrieve blood pressure data from the user's Google Fit account. I am able to successfully make a request to the API endpoint https://www.googleapis.com/fitness/...
0
votes
2
answers
744
views
Refresh token with Google API
I am working in an app which continuously extracts some information related to steps done from some users from GoogleFit API.
I am using the httr package for authentication:
library(httr)
library(...
0
votes
1
answer
354
views
Google Fit does not show the data sent by our app through the Android SDK
When try send data to Google Fit trougth SDK Android (not API), The data not appear inmediatly in Google Fit, they are steps that I do:
I getting data from our API (this sessions are gets from our ...
2
votes
0
answers
75
views
Google fit Api Response delay
I'm trying to fetch from Google Fit to integrate with my react native app, however both the steps and activities are not shown immediately and are only available after a huge delay (30 min to couple ...
0
votes
1
answer
67
views
Language problem - Google Fitness API Scopes
I´m creating an app which needs user authorization to access to some private health information about Google Fit app. When adding the scopes in the OAuth consent screen I can see some Fit scopes are ...
1
vote
1
answer
964
views
health connect still provides data where there should be no data
i try to collecting data from 1 april 2023 to 30 april 2023, today is 20 april 2023 but health connect still provides data for > 20 april 2023 like this
i don't know where the data is coming from, ...