Skip to content

google_sign_in 7.1.0 required serverClientId for Android #172073

@adibzter

Description

@adibzter

Hello everyone, I just upgraded google_sign_in from 6.2.2 to 7.1.0 and encountered this error:

GoogleSignInException(code GoogleSignInExceptionCode.clientConfigurationError, serverClientId must be provided on Android, null

I managed to fix this issue by providing my web client ID instead of the Android one.

What I don't understand is that in the integration docs, it stated that I don't need serverClientId if I already provided google-services.json

If you are not using google-services.json, you need to pass the client ID of the web application you registered as the serverClientId when initialising the GoogleSignIn instance.

Hope anyone can help me understand more about this issue and clear up any misunderstanding on my side.

Thank you.

Metadata

Metadata

Labels

P2Important issues not at the top of the work listp: google_sign_inThe Google Sign-In pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions