Comments (9)
@dominiquera ensure you've followed all the instructions: https://developers.google.com/fit/android/get-api-key
from react-native-google-fit.
@StasDoskalenko thanks for following up.
I have created an OAuth client id with my SHA1 debug key (from .android dir but also copied this key in the android/keystore directory that in the react native folder) and put in the package name found in the manifest. Then put the client_secret.json file in android/app folder (do I need to name it differently?). I have also enabled "Fitness API" in the Api services. Do I need to make any additional configuration? Also I ran "react-native link react-native-google-fit" before actually adding the certificate if that could cause the issue...
Regards
Dom
from react-native-google-fit.
@dominiquera actually, you must carefully follow manual installation as well
from react-native-google-fit.
@StasDoskalenko Did that. Checked that everything has been set up correct
from react-native-google-fit.
@dominiquera
TEMP solution for you: try to download client_secret.json from google api console and save it to android/app
clear gradle cache and try to rebuild
from react-native-google-fit.
@StasDoskalenko same error persists unfortunately. I have also tried adding path, password and alias to local.properties file in android dir. Not sure how to debug the error to get a more helpful message
from react-native-google-fit.
@dominiquera Your error is definitely about you've missed something from Google FIT API authentication steps. Try to start from the scratch and follow Google Documentation carefully.
from react-native-google-fit.
I have finally found the issue. The setup was all correct but I was running react-native run-android with "sudo" because I didn't give full permission. That had several consequences for example the variables I added to the bash_profile were not read and I had to create a properties file pointing to the sdk. So I think by running with sudo something was not read correctly or loaded into the build path. Thanks for your help @StasDoskalenko
from react-native-google-fit.
@dominiquera you're welcome. Yeah in general almost all errors are caused by inattention :)
Anyway, feel free to ask me.
from react-native-google-fit.
Related Issues (20)
- 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
- Could not find method compile() for arguments
- Distance missing from Save workout HOT 1
- How could I get the steps data from Headless?
- AUTH_DENIED Cannot read property 'isAuthorized' of null
- The API is not working anymore, is there a plan to implement Health Connect? HOT 1
- Health Connect HOT 1
- Need redirect url scheme of google fit HOT 1
- Invalid End Time when using new Date().toISOString() HOT 1
- Getting error when calling getDailyStepCountSamples HOT 2
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.