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
5
votes
0 answers

Google Fitness.HistoryAPI Query Multiple Days w/ Timezone

I'm attempting to fetch the past two weeks of daily step totals with a single request to Google's fitness history API. But the data does not bucket the data by days according to the user's own time zone. At least -- this is my assumption. Here is…
Jim Jeffers
  • 17,572
  • 4
  • 41
  • 49
5
votes
1 answer

Read user's Google Fit activities through REST calls

I have seen that a Fitness History API already exists for android but i can't find anything similar for REST services. All i want to do is get the fitness activities of an authorized user's account. For example, i would like to get all the "walking"…
Envy
  • 51
  • 3
5
votes
1 answer

Getting Steps details with respect to fitness activities?

I am working with Google Fit SDK, I can easily fetch steps details but I am really struggling with getting which activity was being done while taking those steps. DataSource ESTIMATED_STEP_DELTAS = new DataSource.Builder() …
ShahrozKhan91
  • 710
  • 10
  • 19
5
votes
4 answers

How to get Data source for step count using Google Fit Android API?

I am trying to use Google Fit API to get step count in my app. But I am not getting any data source other than Location. How to get Data Source for step count? Its been more than 4 days I am stuck at this. Kindly help me with this. Thanks. Below is…
Vipul J
  • 6,641
  • 9
  • 46
  • 61
5
votes
0 answers

Is there a way to get background updates from the Google Fit API?

What I'd like is to receive a callback when step count surpasses a certain threshold. I imagine the solution is to create a service that calls the History API at fixed intervals.
skoush
  • 380
  • 2
  • 10
5
votes
5 answers

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 data only via history api not the complete data…
Binod Singh
  • 682
  • 4
  • 11
  • 22
5
votes
3 answers

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 the way how to get the activities which performed…
Rakki s
  • 1,426
  • 1
  • 18
  • 42
4
votes
1 answer

Weekly Steps Retrieved through Google Fit Android API doesn't match with steps displayed in Google Fit Official App

I am trying to retreive user's weekly steps data from google fit API but I am getting different steps count result from official google fit App data. for example : steps retrieved through google fit api for thursday are 5244 while in official google…
4
votes
1 answer

Flutter - Health package not loading STEP data

I've used health-3.0.3 in my flutter application to get the Google fit data. I'm able to get every data other than STEP-data which shows zero always. You can refer to the health package here Health 3.0.3 Flutter This is the code block to access the…
4
votes
1 answer

Google fit API add multiple data type based on scope

I am using google fit API with multiple user scopes. How can I add multiple data type for each source. If possible, why I cannot add this as a datasource. { "dataStreamName":"MyDataSource", "type":"derived", "application":{ …
draw134
  • 1,053
  • 4
  • 35
  • 84
4
votes
1 answer

Access to Restricted data types and implement in development environment

We are developing application that needs write access to restricted data types. And looks like Google has stopped taking new request for whitelisting apps. https://developers.google.com/fit/android/data-types#restricted_data_types Note: Google has…
Yashdeep Patel
  • 3,090
  • 1
  • 17
  • 21
4
votes
1 answer

Google Fit API for Android

Google Fit and Flutter I am following this documentation from Google: Google Fit I don't understand step 5. I am not an Android developer and I have no idea where to locate the code. Step 5 For example, it says: Before you can invoke methods from…
desancheztorres
  • 353
  • 1
  • 6
  • 13
4
votes
0 answers

Google Fit - Get and Display only steps from the sensor and not from user input

How do we fetch steps only recorded by the sensor(using the History API) and ignore any user input steps similar to what the Health Mate app does when you link it to Google Fit? I have tried demos and the github demos of Google Fit including the…
Rohan M
  • 171
  • 1
  • 13
4
votes
2 answers

Google Fit - The connection to Google Play services was lost

I am getting this error from google fit api. It doesnt happens every time but if i get this error then i couldnt get my step data until i uninstall the app. I configured OAuth 2.0 client auth for my app correctly. But sometimes still I am getting…
aligur
  • 3,387
  • 3
  • 34
  • 51
4
votes
0 answers

Aggregate distances from Google Fit (Rest API 1)

I have been fighting this ridiculous api for a while now. Checked all over SO and couldn't find any useful help for the REST API, looks like Android has it much better at this point. Anyways, I am trying to figure out the total distance traveled…
Andrew McOlash
  • 1,562
  • 1
  • 9
  • 9