google signin not working with production apk on playstore.(release apk on playstore)

android, authentication, google-signin, release

Solution

I had the same issue but resolved it quite nicely, same with Phone Auth if you think of adding one.

Solution workers as of 23 June 2021:

- Go to your google play console and select your app.

- Go to Release->Setup->App Integrity->App Signing Key Certificate.

- Find SHA-1 certificate and copy it. The same goes with SHA-256 certificate.

- Go to your firebase console and select your app.

- Go to project settings and add the copied SHA-1 certificate and SHA-256 certificate. You should be able to log in with Google or Phone again. No need to re-upload apk/aab app to play store.

Problem

Actually Google sign-in is working in debug mode but when i upload the apk on playstore,it is not working. I made a new google project in google console. There i enable the google+ signin api. After that same project was open in firebase where it ask for sha1 key which i entered. everything is working fine in debug mode but release is creating problem in google signin. I am uploading the pic of my google console with firebase Please help

Original source

Related problems