Comments (12)
I really don't know how to make it work in android. I do enable the Fitness API and also obtain an OAuth 2.0 client ID. But the ID is nowhere to use. There is a prompt for which Google account to use, but then just silent disappear, then no error, await FitKit.requestPermissions(DataType.values) just return false.
from fitkit.
Hey.
Could it be possible that you pressed "deny" the first time. I experienced this issue but haven't got time to search for solution. If user denies the permissions then GoogleSignIn.hasPermissions still returns true.
from fitkit.
No, @krokyze .
From the initial launch of the app, I am getting the same scenario. Even on other Android devices also, the same situation.:)
from fitkit.
@sai7 You have to Enable Fitness API and obtain an OAuth 2.0 client ID first with the same package id you are using in your app.
from fitkit.
Yes as already @anil-sookshum answered, @sai7 did you completed this part https://developers.google.com/fit/android/get-api-key ?
from fitkit.
Yes , @krokyze. I have enabled google fit api for the same project.
But as @anil-sookshum mentioned, do I need to use the oauth 2.0 client ID in the app? That is not needed right? I have enabled the google fit api in the app using the same package id. Let me check once again and get back to you,
Thanks much m.
from fitkit.
@sai7 have you added these dependencies in app level gradle file
dependencies {
......
compile 'com.google.android.gms:play-services-fitness:16.0.1'
compile 'com.google.android.gms:play-services-auth:16.0.1'
}
For me it is working fine with above steps. Also check by logging in to with the same google account you are using for OAuth client id.
from fitkit.
@sai7 have you added these dependencies in app level gradle file
dependencies {
......
compile 'com.google.android.gms:play-services-fitness:16.0.1'
compile 'com.google.android.gms:play-services-auth:16.0.1'
}For me it is working fine with above steps. Also check by logging in to with the same google account you are using for OAuth client id.
Those dependencies are already in the Android part of the package so you don't have to add them on your project.
from fitkit.
@sai7 Yes you have to enable the Google Fit API and add your package id, that's it. The client id in app is not needed.
from fitkit.
Hello, first of thank you for this package,
I have some issue as people above, enabled Google Fit API and add package id, and I have success log in my google account, but the data return is empty.
I can see datatype in logcat, such as heart_rate or step_count, but the data is empty. I have make sure that I have data on Google Fit using android app with the same name.
Thank you very much.
Ps: I have check my traffic on https://console.cloud.google.com/ and there wasn't any traffic.
from fitkit.
If anyone still is having problems please open new issue.
from fitkit.
@here I was facing the same issue... I just verified the package which I was using in flutter and the one which Is registered on google console. Both should be same
from fitkit.
Related Issues (20)
- Android 10 - ACTIVITY_RECOGNITION HOT 5
- Android Google Sign In loop
- iOS distance cycling (distanceCycling)
- problem using fitkit android HOT 1
- I have a problem to test fit_kit in debug mode
- Upcoming Google API Changes
- [iOS] steps count is not correct and return the sum of steps on multiple devices regardless of using them meantime. HOT 3
- Security exception while getting Step data HOT 1
- Fitkit 1.1.2 Problems with 1.2x flutter version..
- [Android] infinite loading after choose account in OAuth consent screen HOT 3
- requestPermissions: Failed HOT 1
- How to get specific values in FitData(...) list? HOT 2
- iOS device closing app when i try to read values. HOT 1
- How can I add exercise minutes manually in the Health app? HOT 1
- Exeption in FITKITNoSuchMethodError: The setter 'stepRecord=' was called on null
- Calories consumed
- How can it run in Android Studio
- Data won't display after run the program
- Null-safe version
- Google fit steps data is showing in fit. But it shows NULL in Fit Api. Mobile brands are realme, vivo,...etc
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fitkit.