How to fix ApiException 10 in Flutter for Android
Issue #188
Get error com.google.android.gms.common.api.ApiException: 10
with google_sign_in
package.
Read https://developers.google.com/android/guides/client-auth
Certain Google Play services (such as Google Sign-in and App Invites) require you to provide the SHA-1 of your signing certificate so we can create an OAuth2 client and API key for your app
console.developers.google.com/apis/credentials
Credentials -> OAuth client id
If we specify SHA1 in firebase, then console.developers.google.com
will generate an Android oauth for us
1 | keytool -list -v -keystore {keystore_name} -alias {alias_name} |
Use correct keystore for debug and release
1 | buildTypes { |
Updated at 2020-10-05 13:23:34