I Had problem in sign in for google. I had installed the release build manually its working , but if I install it from play store I am getting sign in failed.
W/Auth: [Get Token] Get Token failed with status code: UNREGISTERED_ON_API_CONSOLE E/TokenRequestor: You have wrong OAuth2 related configurations, please check. Detailed error: UNREGISTERED_ON_API_CONSOLE
E/SignInActivity: Google Sign In failed.
Code snippet:
GoogleSignInOptions gso = new
GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestIdToken(getString(R.string.server_client_id))
.requestEmail()
.build();
mGoogleApiClient = new GoogleApiClient.Builder(this)
.enableAutoManage(this /* FragmentActivity */, this /*
OnConnectionFailedListener */)
.addApi(Auth.GOOGLE_SIGN_IN_API, gso)
.build();
As AndroDevelopers said in this comment :
go to fire base --> settings --> account linking ---> google play (Click Manage Linking) and click link google play account that's it. wait few minutes u will get Your App Working
It is help me.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.