Skip to content

[google_sign_in] Android documentation is wrong #107532

Open
flutter/packages
#9267
@tudor07

Description

@tudor07

I'm trying to use Google Sign In and it works fine on iOS but on Android the documentation is weird/not clear.

For example I'm trying to init the library like this:

final googleUser = await GoogleSignIn(
  serverClientId: 'your_server_client_id',
  clientId: 'your_client_id'
).signIn();

However, in the documentation it says this in regards to the clientId param (source):

This option is not supported on all platforms (e.g. Android)

And it says this in regards to serverClientId param (source):

Optional and not supported on all platforms (e.g. web)

Which implies that serverClientId is working on Android.

However if we look at the implementation here, the serverClientId is actually not used and not only that but clientId param is used even if the documentation says it is not supported on Android.

Metadata

Metadata

Labels

P2Important issues not at the top of the work listd: api docsIssues with https://api.flutter.dev/p: google_sign_inThe Google Sign-In pluginpackageflutter/packages repository. See also p: labels.team-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