Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

enter image description here

like image 622
Piyush Aggarwal Avatar asked Oct 31 '16 06:10

Piyush Aggarwal


People also ask

What is release name in Play store?

The release name is only for use in Play Console and won't be visible to users. We'll auto-populate the field with the version name of the first app bundle or APK added to the release. To make your release easier to identify, add a release name that's meaningful to you, like the build version ("3.2.

What is Google Play app signing?

Android apps are cryptographically signed by the developer. This allows the package manager on the user's device to verify that every app update comes from the same source and that it hasn't been tampered with.


1 Answers

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:

  1. Go to your google play console and select your app.
  2. Go to Release->Setup->App Integrity->App Signing Key Certificate.
  3. Find SHA-1 certificate and copy it. The same goes with SHA-256 certificate.
  4. Go to your firebase console and select your app.
  5. 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.
like image 118
T. Hlungwani Avatar answered Oct 14 '22 21:10

T. Hlungwani