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?
Asked
Active
Viewed 246 times
0
-
2Maybe this [answer](https://stackoverflow.com/questions/51360250/firebase-ui-authentication-with-google-fails-with-message-code10-message10/51360406) will help. – Alex Mamo Oct 29 '21 at 13:26
-
that answer includes the google play store keys as well...but i don't have those since i haven't uploaded my app on play store yet – Pro Oct 29 '21 at 13:30
1 Answers
1
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.
zeg
- 432
- 2
- 9
-
1I used the method @Alex Mamo pointed to it worked! Apperently you don't need the google play store keys if you haven't released your app on play store – Pro Oct 31 '21 at 10:50