Giter Club home page Giter Club logo

Comments (9)

StasDoskalenko avatar StasDoskalenko commented on September 3, 2024

@dominiquera ensure you've followed all the instructions: https://developers.google.com/fit/android/get-api-key

from react-native-google-fit.

dominiquera avatar dominiquera commented on September 3, 2024

@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.

StasDoskalenko avatar StasDoskalenko commented on September 3, 2024

@dominiquera actually, you must carefully follow manual installation as well

from react-native-google-fit.

dominiquera avatar dominiquera commented on September 3, 2024

@StasDoskalenko Did that. Checked that everything has been set up correct

from react-native-google-fit.

StasDoskalenko avatar StasDoskalenko commented on September 3, 2024

@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.

dominiquera avatar dominiquera commented on September 3, 2024

@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.

StasDoskalenko avatar StasDoskalenko commented on September 3, 2024

@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.

dominiquera avatar dominiquera commented on September 3, 2024

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.

StasDoskalenko avatar StasDoskalenko commented on September 3, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.