I have implemented Google login with firebase auth service, it works fine when i an using debugging app. But as when i generate signed apk. firebase auth does not login, please help!
Asked
Active
Viewed 1,755 times
-2
-
you need to take the SHA1 key using your key store file then add into firebase console it will be working fine! – Ram Suthakar Oct 12 '18 at 07:34
-
I have checked SHA1 key from gradle and firebase is same, which has automatically uploaded at the time of firebase setup.... so will you please guide if i am doing something wrong – Hello Electroniocs Oct 12 '18 at 07:43
-
Refer this link : https://stackoverflow.com/a/15727931/3406577 – Ram Suthakar Oct 12 '18 at 07:48
-
sir i have edited my question where i have given pic of both my SHA1 from Firebase and Android Studio, Please let me know what to change ? – Hello Electroniocs Oct 12 '18 at 08:01
-
yes currently you're adding the android\debug.keystore it will only working for debug builds, but in live we need to take the SHA1 key based on your APK keystore file and add your console – Ram Suthakar Oct 12 '18 at 08:06
-
follow the above link ( https://stackoverflow.com/a/15727931/3406577 )which i shared and create the SHA1 key using your live keystore file, problem will solved try that link – Ram Suthakar Oct 12 '18 at 08:09
-
I have solved same issue by referring to this issue https://stackoverflow.com/a/53133829/11216683 – rushab Jun 07 '20 at 08:20
1 Answers
0
The following steps can be used in order to solve the issue:
First check the package name , if it is same on firebase console as well as android studio, if not then make it same but if yes then
Generate SHA-1 : You can use exactly this code (no need to change), open terminal of android studio and paste this code: keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
and now compare it with SHA-1 present in the firebase console.
- Clean and rebuild the gradle Hope the above mentioned steps could resolve the issue
Refer the link in order to get more clarity to the above mentioned procedure: react native with firebase phone auth validation failed

Android1005
- 155
- 3
- 14
-
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/low-quality-posts/21111624) – dardisco Oct 12 '18 at 08:29
-
Kindly review the ans again if it is answered in a right manner now – Android1005 Oct 12 '18 at 13:33