Elizabeth Elizabeth - 10 months ago 63
Android Question

google signIn not working in release mode apk android

In release mode, my google signin is not working. but it works fine in debug mode. i got similar qtn from SO here. But i didnt get a perfect soultions.

handleSignInResult is coming false
What to do????

Answer Source

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.