pb4now pb4now - 4 months ago 12
Java Question

Creating GoogleSignInOptions...?

whille creating GoogleSignInoptions I fallow the steps presented on 'firebase' site
that are as fallow:

GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestIdToken(getString(R.string.default_web_client_id))
.requestEmail()
.build();


and just wondering what is that String that I'm passing there -R.string.default_web_client_id - and can it vary or is it always "R.string.default_web_client_id" ??

Answer

what is that String

It's automatically generated and you can see it at

app/build/generated/res/google-services/{build_flavor}/values/values.xml

can it vary or is it always "R.string.default_web_client_id"?

Since it is generated by compiling Google Services, it is always the same (at least until Google decides to rename it with an API update).

Comments