I am building a flutter app and i'm testing the release on the play store with a closed testing. The app needs the user to be authenticated using Google Sign In, and for what i've tried it works every time, except when i upload my app to play store.
It's a weird issue, i know.
Now here's a list with what i've tried so far:
flutter clean
+ re-downloading the google-service.jsong
+ flutterfire configure
+ flutter pub get
(done at each step above)Weird behaviors that might hint a solutions:
Some other technical info to add context:
cliendId
to make the plugin get what it needs fromm the files made by flutterfire configure
. (Yes i've tried with both clientId
and serverClientId
)PlatformException(sign_in_failed, com.google.android.gms.common.api.j: 10: , null, null)
Afll the solutions were pointing out to the keys in Google Play Console /Test and Release /Setup /App Signing
. i added to Firebase both SHA-1
and SHA-256
of my Legacy Key (which has been upgraded about 9 month ago), and now it magically works. i don't think two keys are necessary, but at least one should be.