-
Notifications
You must be signed in to change notification settings - Fork 696
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 2.0.2] Google Play API Sign in failure #172
Comments
i have this issue too ! also there is not a try catch block for google signIn in the native code , if some error or exception occure it will crash the app |
@Matthew-Pitzer I solved this issue by changing native codes ,
and this method (getData) to :
|
@mr-mamali Thanks so much for the fix! You're a lifesaver! |
Thanks, I am going to merge this into the plugin 👍 |
This will take a little longer since I am without an Android phone for a few more days. |
I got the same issues too, and i have resolved by modifying the plugin code. Thanks you for your solution
@mr-mamali Thank you for the fix! You have saved my time to dig in to the issue. |
Fixed in version 2.0.6 |
thanks, that helped ! |
merged code from issue cph-cachet#172
Device / Emulator and OS
Describe the bug
Whenever I call HealthFactory().getHealthDataFromTypes() with any date range and type I get the prompt to choose an account and get a log message saying access was granted. However after the popup disappears the screen flashes, the app crashes, and I get the following error:
com.google.android.gms.common.api.ApiException: 4: The user must be signed in to make this API call.
To Reproduce
Expected behavior
Ability to read from Google Fit
Actual behavior
Flutter doctor
Additional information
I am able to use the FitKit plugin perfectly fine, so I know my permissions/OAuth credentials are setup properly.
The text was updated successfully, but these errors were encountered: