Comments (10)
I had the same issue but in the end, I noticed, that the callback has two parameters - an error and a boolean response, so handling this should look like:
GoogleFit.isEnabled((error, isEnabled) => {
...
}
from react-native-google-fit.
Hello, I wanted to know If you had some trouble with the isEnabled value. When I kill the app, or even the day+1, the value of isEnabled is back to false ...
If you have any informations about it, it would be great !!!!
from react-native-google-fit.
did you grand a permission to read from google fit?
there should be a pop-up which asks which google account to use and which data will be accessible for the app.
isEnable - check whether permissions granted or not. You can use it before 'authorize' call - to check, do you need to call 'authorize' or not.
from react-native-google-fit.
yeah I got that pop-up, selected my google account and confirmed but isEnable() still returns false unfortunately
from react-native-google-fit.
Pop-up with google account selection, and then grad permissions, right?
Bcs for me it seems like a problem with correct installation (in google console not everything done well) - also had the same. Need to double check that you allowed Fitness API in google console for your App
from react-native-google-fit.
Samehere
from react-native-google-fit.
mhh, I don't think that it's a problem with google console configuration because it got it working in a pure android application with the exact same configuration in the console, thanks for the tips though
from react-native-google-fit.
I don't think this is specially related to the library, the thing is the library work well for nominal scenario. But this is not always the case and we should have some behavior that is:
- Easy to understand & debug
- Or even better be transparent.
from react-native-google-fit.
Same here
from react-native-google-fit.
@amarnathsdr could you please try with the latest version?
And try checkIsAuthorized() method - it returns a promise
from react-native-google-fit.
Related Issues (20)
- getActivitySamples missing data HOT 3
- Google fit consents screen change HOT 1
- AUTH_DENIED Authorization cancelled HOT 2
- isAvailable() doesn't work on Android 11+ without change to AndroidManifest.xml HOT 1
- getDailySteps returns empty array HOT 3
- passing callback to `observeSteps` causes crash HOT 6
- Running the react-native google fit with background fetch crashes the app HOT 1
- Data for users who never used Google Fit HOT 3
- Authorize Issue in bundle release HOT 6
- GoogleFit.getXXXSamples(options) returns with no data HOT 1
- Using new GoogleSignInClient
- I want to retrieve information about connected users.
- How to get Read Sleep Data by sessions of type sleep as Document HOT 4
- GoogleFit.disconnect() not working
- App crash on bundleRelease - java.lang.IllegalStateException
- How to allow access to our react native mobile app without mandatory Google OAuth sign in blocking users progressing (is it possible to easily skip)? HOT 3
- Not working in release or debug in .aab extention HOT 12
- Firebase Error: Attempt to invoke virtual method 'java.lang.String java.lang.String.to LowerCase()'on a null object reference HOT 1
- Missing source information for some datatypes
- Google Fit Sync working in prod apk but not in Playstore build (With firebase) HOT 1
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 react-native-google-fit.