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 :
Please refer to the following images and get the SHA-1 key
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.
Related Topics
Usb Device Access Pop-Up Suppression
Android ==> Memory Analysing ==> Eclipse Memory Analyzer
Passing String Array Between Android Activities
Difference Between Activity and Fragmentactivity
Vectordrawable - Is It Available Somehow for Pre-Lollipop Versions of Android
Get the Uri of an Image Stored in Drawable
Upload Photo to Facebook with Facebook Android Sdk in Android
Android Ci Build: Could Not Find Aapt2-Proto.Jar
Android/Webkit Text-Overflow: Ellipsis Not Working
Single Selection in Recyclerview
Get the Current Fragment Object
Android Saving Created Bitmap to Directory on Sd Card
Gles10.Glgetintegerv Returns 0 in Lollipop Only
How Do Android Screen Coordinates Work
Textwatcher for More Than One Edittext