-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Health 10.2.0] Health connect permissions don't match what is asked #984
Labels
bugfix
a bug fix
Comments
After further investigation, I was able to narrow down the precise issues:
|
This is because you are using workout , which under the hood request for total calories burned and distance . This is the plugin native code for android
|
@harryandroiddev Thanks for sharing your insight! |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Device / Emulator and OS
Describe the bug
The permissions appearing in Health connect do not match the list of permissions passed to the plugin method
requestAuthorization
.Dart:
Android Manifest:
Health connect screen:
The "write" permissions in health connect do not include the ones that were requested, and the "read" permissions include all of them, although none was requested.
As a consequence:
hasPermissions
always returns false.To Reproduce
Ask for Write-only permissions.
Expected behavior
For Health connect to list the exact permissions requested, no more, no less.
Actual behavior
The permissions requested do not appear, and others that were not requested do appear.
Flutter doctor
The text was updated successfully, but these errors were encountered: