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
7
votes
1 answer

How to use the sensor flutter package for developing a step counter?

I am trying to make a step counter with the help of sensor flutter widget, I was having the look at sensor flutter package code but not getting a single point from where to start and how to achieve the required result. What are the things involved…
Tushar Rai
  • 2,371
  • 4
  • 28
  • 57
7
votes
3 answers

Scope for HealthDataTypes of Google Fit

I want to read HealthDataTypes. Which Scope must I set when creating GoogleApiClient? .addScope(new Scope(????))
ViT-Vetal-
  • 2,431
  • 3
  • 19
  • 35
7
votes
1 answer

Android plugin using Google Fitness API for Unity3D

The main goal of my project is to create a Unity plugin that will be able to use Google Fitness step counter API. It have to provide several features like: getting daily steps count, getting total steps, saving steps amount on the google account and…
7
votes
2 answers

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 activity per day. I can get the total calories for…
user292277
  • 101
  • 2
  • 5
7
votes
3 answers

Handle GoogleFit in background in Android App

I am trying to connect my app to Google Fit. I am using an IntentService that needs to do the following things. Gets started when I have information about steps. At this point I am trying to create the GoogleApiClient by calling the following…
Vlad Bogdan
  • 700
  • 1
  • 8
  • 25
7
votes
0 answers

Can I calculate the number of stairs climbed using the google FIT api?

I need to calculate the number of stairs climbed by the user using Google Fit API in my Android App. Is that possible?
Ramya Ramesh
  • 299
  • 3
  • 18
7
votes
1 answer

Best way to get daily steps count of user to send to server in background

I want to send to my server every 24 hours how many steps I walked. I have an AlarmManager to go off alarmManager.setRepeating(AlarmManager.RTC_WAKEUP,System.currentTimeMillis(),1000*60*60*24, pendingIntent1) Now this is where I am stuck... how…
user1163234
  • 2,407
  • 6
  • 35
  • 63
7
votes
2 answers

Is it possible to detect if Google Fit app is installed and used by user?

I want to add step counter to my app. By now I'm using Google fit to measure user step count. The problems I'm facing with is that not all devices has Google Fit app installed, and even if does - not all users register to app service (as client). So…
sharonooo
  • 684
  • 3
  • 8
  • 25
7
votes
4 answers

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". - First, I get all my datasources. - Then,…
Kahn
  • 113
  • 1
  • 2
  • 6
6
votes
1 answer

Google Fit data pattern change since Google fit App update, implementation apparently broken

We have identified in our user base that since the last google fit app update there's been a dramatic drop in data, and since it began we have tried to identify the issue in our code. Giving the timing, we thought the version we were using ( 18.0 at…
CptEric
  • 897
  • 9
  • 23
6
votes
0 answers

Collecting realtime heart rate data from Google Fit Sensor API

I’m currently working on a fitness android app that uses an external heart rate device and collecting data over Bluetooth low energy protocol. However, it is really hard to maintain that device, I'm considering to replace heart rate device with…
lbasek
  • 389
  • 3
  • 12
6
votes
0 answers

Google Fit Health Api - Fitness: Data point out of order

I do some readings in my app and I see that it works really slowly, and a bunch of these messages in the logs: 08-04 20:33:33.691 27900-18653/? W/Fitness: Trimming data point [13:00:00-13:39:00] outputted with range [13:38:00-13:39:00] …
Kaloyan Roussev
  • 14,515
  • 21
  • 98
  • 180
6
votes
3 answers

Are inactive calories on google fit wrong?

With "inactive cal" is google fit talking about "basic metabolic rate" ? Because the bmr is supposed to be costant but fit gives me a different number of "inactive cal" every day... Someone can explain me why? It pass from 1500 to 2100 depending on…
Adriano
  • 61
  • 1
  • 1
  • 3
6
votes
2 answers

Google API Client OAuth Always Returns Canceled

I am trying to use the Google Fit History API and I am running into an issue where after I prompt the user for their Google account using ConnectionResult.StartResolutionForResult, I am ALWAYS getting a return code of CANCELED even though the user…
thedigitalsean
  • 269
  • 1
  • 3
  • 10
6
votes
2 answers

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 identify these kind of activity and ignore…
Amit
  • 1,365
  • 8
  • 15
1 2
3
64 65