Giter Club home page Giter Club logo

Comments (10)

pdaw avatar pdaw commented on July 29, 2024 5

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.

amarnathsdr avatar amarnathsdr commented on July 29, 2024 1

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.

EJohnF avatar EJohnF commented on July 29, 2024

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.

MonteyMontey avatar MonteyMontey commented on July 29, 2024

yeah I got that pop-up, selected my google account and confirmed but isEnable() still returns false unfortunately

from react-native-google-fit.

EJohnF avatar EJohnF commented on July 29, 2024

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.

ScreamZ avatar ScreamZ commented on July 29, 2024

Samehere

from react-native-google-fit.

MonteyMontey avatar MonteyMontey commented on July 29, 2024

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.

ScreamZ avatar ScreamZ commented on July 29, 2024

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:

  1. Easy to understand & debug
  2. Or even better be transparent.

from react-native-google-fit.

ilyafriedman avatar ilyafriedman commented on July 29, 2024

Same here

from react-native-google-fit.

StasDoskalenko avatar StasDoskalenko commented on July 29, 2024

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

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.