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.
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:
However, in the documentation it says this in regards to the
clientIdparam (source):And it says this in regards to
serverClientIdparam (source):Which implies that
serverClientIdis working on Android.However if we look at the implementation here, the
serverClientIdis actually not used and not only that butclientIdparam is used even if the documentation says it is not supported on Android.