-
Notifications
You must be signed in to change notification settings - Fork 711
[Health][Android] Rejected authorization request never returns #133
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
Comments
TylerStein
pushed a commit
to TylerStein/flutter-plugins
that referenced
this issue
Jul 29, 2020
thomasnilsson
pushed a commit
that referenced
this issue
Jul 30, 2020
#133 Handle RESULT_CANCELED in HealthPlugin.kt onActivityResult
Merged the pull request and the changes are not live in version 1.1.5, thank you! |
hibitness-quan-nguyen2
pushed a commit
to hibitness/flutter-plugins
that referenced
this issue
Dec 18, 2023
hibitness-quan-nguyen2
pushed a commit
to hibitness/flutter-plugins
that referenced
this issue
Dec 18, 2023
cph-cachet#133 Handle RESULT_CANCELED in HealthPlugin.kt onActivityResult
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Plugin name & version
Health 1.1.4
Describe the bug
The invoked
requestAuthorization
plugin method on Android never returns the Future if the user does not complete authorization with their Google account.To Reproduce
Steps to reproduce the behavior:
Health.requestAuthorization()
on Android_channel.invokeMethod('requestAuthorization')
Future is never returnedExpected behavior
Invoking
requestAuthorization
should at least return false when the user cancels the authorization request by closing the Google account dialog.Actual behavior
Invoking
requestAuthorization
and closing the Google account dialog without authorizing never returns the Future created in theHealth.requestAuthorization()
method.Screenshots
Flutter doctor
[√] Flutter (Channel stable, v1.17.4, on Microsoft Windows [Version 10.0.18362.959], locale en-CA)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Android Studio (version 3.6)
[√] Connected device (1 available)
• No issues found!
Smartphone(s) / Emulator
Additional context
I managed to solve the issue in a local copy of the plugin code by updating the
onActivityResult
method ofHealthPlugin.kt
The change is in this pull request #134
The text was updated successfully, but these errors were encountered: