I can’t log in with google in my Release app

Asked

Viewed 58 times

1

in this part of else and does not continue logging in, I already got sha1 from Key store path by prompt as the code

-list -v -keystore "Local da chave" -alias nomealias -storepass senha -keypass senha

the app is up to playstore, before it was working well just to make the release and send there.

private void handleSignInResult(GoogleSignInResult result) {
    if (result.isSuccess()) {
        firebaseAuthWithGoogle(result.getSignInAccount());
    } else {
        Toast.makeText(this, R.string.not_log_in, Toast.LENGTH_SHORT).show();
    }
}

At this time I will redo my login activity if I do not solve my code and I expect a light here, or change my login type something I do not want :(

UPDATING I ran the debug and it didn’t work either, I reran the login activity and it’s back up, now I will post the new version of my app and see what happens.

So... works in debug and release version more on Playstore does not work anyone help me there please.

  • You are probably using the debug-mode key instead of the release-mode key. Check the file where the keys were saved, add the keys in the firebase settings, download the new google-services.json, record your project in the app folder, and see if you log in.

  • So I dropped the app I was doing, but I used the release key added in firebase also changed the key in googleApi and I couldn’t, so I even changed the login type which was even better.anyway ,Thanks!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.