krokyze / FitKit

Flutter plugin for reading health and fitness data. Wraps HealthKit on iOS and GoogleFit on Android.
BSD 2-Clause "Simplified" License
98 stars 72 forks source link

Google account selection dialog is prompting every time when FitKit.requestPermissions is being called on Android. #45

Closed kwanso-ahsan closed 4 years ago

kwanso-ahsan commented 4 years ago

@krokyze 20200430_151729

kwanso-ahsan commented 4 years ago

@krokyze Can you please address this issue?

LaxmikanthMadhyastha commented 4 years ago

Any update on this?

vvicenteboo commented 4 years ago

i have same issue, on dev is working well but on release is prompting google account selection every time with requestPermissions result false, any solution?

LaxmikanthMadhyastha commented 4 years ago

Hi, any update regarding this issue?

krokyze commented 4 years ago

I'm not 100% sure what could lead to this issue. Can you make sure that for the client ID you added release SHA-1 and not the debug one? @vvicenteboo

LaxmikanthMadhyastha commented 4 years ago

Hi @krokyze, I have checked the SHA-1 fingerprint and it is of release one. When I tried with flutter run --release also it is working fine but only when the app is downloaded from play store dialog is prompting every time even after giving the permission.

krokyze commented 4 years ago

@LaxmikanthMadhyastha it sounds like you have enabled App signing in Google Play and your upload, signing certificates are different. You need to add the signing SHA-1 which you can find in Google Play Console -> Your app -> Release management -> App signing.

LaxmikanthMadhyastha commented 4 years ago

@krokyze Thanks a lot it worked, that's a new thing which I didn't know

krokyze commented 4 years ago

@LaxmikanthMadhyastha happy to hear that! 😉