Google Signin Not Working in Release Mode APK Android

google signIn not working in release mode apk android

Make sure you follow all the steps specified in the Guide

. If need be, create a new OAuth Client, new configuration file (the google-services.json) file and do everything step-by-step.

Also try adding a Web Client giving the same credentials.
And for Android as well as Web client give both the SHA1 for debug as well as the release keystores.
In Android Studio, at extreme left you will see a tab saying "Build Variants". Select the release mode there and do everything after that.

google sign in doesn't work in release mode?

Yes, firebase requires a different fingerprint for release mode, please generate keys using this command,

keytool -list -v -keystore {keystore_name} -alias {alias_name}

example:

keytool -list -v -keystore C:\Users\MG\Desktop\test.jks -alias test

To monitor events, you can integrate Firebase Crashlytics into your project.

to temporarily debug your app in release mode run

flutter run --release 

google signIn not working in release apk android

How to find release sha1 :

Type below command in your cmd or terminal:

keytool -list -v -keystore D:\filepath\YourAPP.jks -alias XYZ

and debug sha1 :

![Go to far left[![][1][1]

Please refer to the following images and get the SHA-1 key
Refresh

View in console panel at bottom

Sign-in with google for android not working in release apk

Finally solved it. I added the SHA1 key for my release key (the .jks file) in the Google Developers Console under the project registered.
In Android Studio, at the left side, there is an option for Build variants under the project view. There, I changed each module to release mode (it is in debug mode by default). Then created the Signed APK by usual method, and run the app. The Google Signin worked perfectly.

Changing the build variants



Related Topics



Leave a reply



Submit