Martin
Martin

Reputation: 149

GOOGLE_SIGN_IN_API fails in a release build

When my app is a built as a debug build I can login correctly, but when I build as a signed APK and release in Google Play the same account can't login.

Is there an extra Google API permission that I'm missing?

mGoogleApiClient = new GoogleApiClient.Builder(this) .enableAutoManage(this, this ) .addApi(Auth.GOOGLE_SIGN_IN_API, gso) .build();

...

GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data); if (!result.isSuccess()) { .. }

Upvotes: 0

Views: 165

Answers (1)

Sangram Haladkar
Sangram Haladkar

Reputation: 717

As I understand, you have provided the debug SHA1 in the Google developer console, then you signed the apk and the SHA1 changed.

Upvotes: 1

Related Questions