I am have a flutter app that uses firebase for auth. sign-in with google works in debug mode, but not in release mode. This is most likely an issue with signing with firebase.
Debug environment - WORKING:
buildTypes {
release {
signingConfig signingConfigs.debug
}
}
Release mode - NOT WORKING (Google Sign in)
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
I am pretty sure the issue is related to signing. I am using the release keys shown in the google play console here
and the same keys in firebase, I was sure to update the json file when I made the changes here
In Debug mode, I use the debug.keystore keys, while in the release version, I am using the keys generated from the app, which I find in the google play console. they are also found in the signing report in android studio.
So I need help figuring out how to get my release version of the app working with firebase auth. I would appreciate any help anyone can give. Thank you - Joseph
Try these things and I hope it will solve your problem.
Try to verify your SHA-1 key is still corresponding between your app and firebase.
Go to your firebase console, download a new version of the google-services.json file and replace the former one by it.
Delete the account (eg: user@gmail.com) you're trying to connect with from the firebase authentication console.
我没有把你所有的钥匙都放进火力库,只是私人的和谷歌游戏商店的钥匙,但不是释放钥匙
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.