My google sign in is working perfectly for debug variant. But when I tried to build the release variant it stops working...I referred to this answer but in my case I haven't uploaded to my app to play store yet. So how can I get my new sha1 keys in this case?
CodePudding user response:
See the answer @Alex Mamao pointed out.
You can create the SHA1 keys in your project. On the right handside of Android Studio > Gradle > app > Tasks > android > signing Report
You have to go to your google play android developer console. (play.google.com/console). Even without uploading something you should find general > Setup > API access. Turn it on and it will open the google cloud console and create a project automatically. (console.cloud.google.com) There you can create the API tokens for your android app underneath APIs & services. Without releasing this allows only a provided list of testers to login with google auth. Afterwards anyone can opt-in.