First i'd just like to say I have Google play sign in up and working. However I have struggling to understand how a specific line of code works.
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestIdToken(getString(R.string.default_web_client_id))
.requestEmail()
.build();
I would like to know how requestIdToken is getting my real clientId.
when investigating: default_web_client_id = 0x7f060035
when i log R.string.default_web_client_id i get: 2131099701
when I log getString(R.string.default_web_client_id) i get: xxxxxxx-xxxxxxxxx0tfctc0fa0a.apps.googleusercontent.com(my web client id)
This id is not located in my strings or resources folder. However it is in my google-services.json file.
My question is how is getString or that default_web_client_id resolving into a clientID in a Json File?
Thanks in advance for the enlightenment!
According to this you apply gradle plugin which then generates new xml file with values from the JSON
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With