Comments (10)
@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.
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.
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.
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.
I'll reopen the issue, but it seems to be out of the plugin's control.
from cordova-plugin-health.
In that case, is this a issue with the initial google setup / app authorization?
from cordova-plugin-health.
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.
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.
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.
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)
- Google Oauth verification HOT 18
- How to pass the value to store blood_glucose? HOT 1
- Empty array for active calories HOT 2
- blood_glucose cannot be authorised on Android HOT 3
- How to query cycling distances in Health Connect? HOT 1
- add support for distance in Android HOT 6
- Add support for TotalCaloriesBurnedRecord HOT 1
- How obtain 3 synchronisations HOT 1
- delete operation on Android: Missing argument startDate HOT 3
- Datatype not supported heart_rate & Datatype not supported sleep HOT 6
- Open healthConnect / HealthKit programmatically to see app authorizations HOT 24
- AndroidManifest.xml permissions re-added when compiling HOT 3
- inconsistency in unit value for health data
- Android: Privacy Policy URL must be specified at installation time not runtime HOT 1
- Using targetSdkVersion 34 is not supported in Capacitor 5 HOT 4
- Execute multiple queries synchronously HOT 2
- NPM package is not updated HOT 3
- Health connect android - android 14 delete records crashes. HOT 1
- openHealthSettings() does not work on Android 14 / HONOR 70. HOT 6
- Always get steps in 0 count
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 cordova-plugin-health.