Giter Site home page Giter Site logo

Comments (10)

Deharlan avatar Deharlan commented on September 13, 2024 1

@dariosalvi78 Yes, I think it is the reason.
But I do not know how to ask for an authorization,
When I call the requestAuthorization function, it asks the user to log in, and checks the data information and then returns with that "User canceled the dialog" log.

from cordova-plugin-health.

 avatar commented on September 13, 2024 1

that's where the plugin ends and you app begins :)
Show something to the user before to have him prepared of what's coming next. If he rejects, there's not very much you can do about it.

I'll close this issue then...

from cordova-plugin-health.

dariosalvi78 avatar dariosalvi78 commented on September 13, 2024

I guess this happens on Android.
If the user does not authorise the app, that's the message that you get..
Is this what's happening to you?

from cordova-plugin-health.

git-clay avatar git-clay commented on September 13, 2024

I am getting this same issue.

This happens during the "requestAuthorization" function. Google successfully brings up the login display, a user will select an account or login to a new one. Instead of successfully logging the user in, the error "User cancelled the dialog" is thrown.

from cordova-plugin-health.

 avatar commented on September 13, 2024

I'll reopen the issue, but it seems to be out of the plugin's control.

from cordova-plugin-health.

git-clay avatar git-clay commented on September 13, 2024

In that case, is this a issue with the initial google setup / app authorization?

from cordova-plugin-health.

 avatar commented on September 13, 2024

it is likely that you haven't setup the API credentials correctly in the Google console. If you fix it, please tell me and I'll close the issue.

from cordova-plugin-health.

git-clay avatar git-clay commented on September 13, 2024

Does the authorization flow need to utilize "in app browser"? Therefore needing the google console 2.0 authorization to be set up for a web application or is this plugin built to utilize the android 2.0 authentication?

from cordova-plugin-health.

 avatar commented on September 13, 2024

The authorisation flow is managed by the plugin following the official guidelines, the browser has nothing to do with it.
Make sure that you have correctly setup the key in the Google API console.

from cordova-plugin-health.

git-clay avatar git-clay commented on September 13, 2024

this isnt an issue with the plugin so no need to keep it open. Thanks for your help, I will keep working with the google console

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.