dev-juyoung / Fitness

Flutter plugin for reading health and fitness data. Wraps HealthKit on iOS and GoogleFit on Android.
MIT License
19 stars 11 forks source link

How to get the google account signin details like email id, uuid and other fields from requestPermission invoke function? #4

Open ramsmart-inno opened 3 years ago

ramsmart-inno commented 3 years ago

when I integrate google sign-in with the firebase auth package. it causes an error.

then I remove the above package, it will work smoothly.

is it possible to get an email id, image URL, or UUID from the respective google fit authenticating account?

dev-juyoung commented 3 years ago

@ramsmart-inno it is confirmed that emails, images, etc. can be obtained optionally through a Google Fit verified account.

however, i think this plugin is against the ultimate goal of solving it.

can you attach a code or error log so we can figure out the cause? and please tell us about the environment of flutter that you are currently using.

based on your answers, let's find a solution to solve the problem.

ramsmart-inno commented 3 years ago

PlatformException(sign_in_failed,com.google.android.gms.common.api.ApiException:10:,null)

I got the above exception while using google_sign_in with the fitness package. Due to SHA1 is configured in OAuth Consent and firebase as well. I think so.

dev-juyoung commented 3 years ago

Is this an error in the Fitness package? This error appears to be an error that occurs in google_sign_in package.

Let's try to find out if there is a solution to fix the error by configuring the environment as much as possible.

ramsmart-inno commented 3 years ago

I did all the check environment level and app-level as well. But it would look like the same. I didn't make any changes to the SDK level.

dev-juyoung commented 3 years ago

@ramsmart-inno is this still happening?

Moammar1498 commented 1 year ago

I ran into same error due to google sign in package. My project is registered with firebase without sha but I am integrating google sign in without firebase.