-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Closed
flutter/packages
#9629Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listp: google_sign_inThe Google Sign-In pluginThe Google Sign-In pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamTriaged by Ecosystem team
Description
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.
Chris1234567899, devOmedia, lehoangbaochung, sitthaveet, diegopq and 1 more
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listp: google_sign_inThe Google Sign-In pluginThe Google Sign-In pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamTriaged by Ecosystem team