Google login doesn't work after releasing signed APK in alpha testing

I am having trouble logging in to Google. I installed the release build manually, but if I installed it from the play store, I get an error message.

W / Auth: [Get token] Failed to get token with status code: UNRector_ON_API_CONSOLE E / TokenRequestor: you have incorrect configurations related to OAuth2, please check. Detailed error: UNRector_ON_API_CONSOLE

E / SignInActivity: Google login 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();
+4
source share
1 answer

AndroDevelopers :

→ → --- > google play ( " " ) "Google Play", . , .

.

+7

Source: https://habr.com/ru/post/1678217/


All Articles