Giter Site home page Giter Site logo

Comments (3)

JulianLaval avatar JulianLaval commented on September 13, 2024 1

After digging a bit deeper, it turned out that in some rare situations I wasn't actually requesting authorisation before querying Google Fit. Wrapping these queries in the requestAuthorization callback seems to have fixed it! Closing!

from cordova-plugin-health.

dariosalvi78 avatar dariosalvi78 commented on September 13, 2024

The Google Fit plugin follows the guide given by Google itself. In principle, the callback should be called once a connection to the Fit APIs is 100% guaranteed. If that's not the case, there's not very much I can think of I'm afraid.

It's interesting that you have found that this happens only the first time after the app is installed. Maybe there's a delay in the communication with the Google servers, or maybe your network connection is not very reliable? In both cases, this behaviour shouldn't happen anyway.

I will leave this issue opened until we find something more about it.

from cordova-plugin-health.

JulianLaval avatar JulianLaval commented on September 13, 2024

Weird indeed! Am looking into this on my end, will update with any findings!

from cordova-plugin-health.

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.