Google sign-in fails
Closed this issue · 3 comments
anirvan-majumdar commented
Error message (toast) pops up saying: Google sign-in failed, please try again
nikhil-31 commented
Hi,
If built using the debug build the Google sign in will fail as the sha1 key
for your system is not added. Please build using release or the apk
provided and make sure internet is connected. The release keystore and
password are all in the apps build.gradle.
…On Feb 6, 2018 12:39, "anirvan" ***@***.***> wrote:
Error message pops up saying: *Google sign-in failed, please try again*
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ATBU_1DxhgqT56-1itclKXA3URBorPO2ks5tR_qsgaJpZM4R6l3B>
.
nikhil-31 commented
To run the code with the release build. In the app build.gradle file
config {
keyAlias 'key0'
keyPassword 'hackme789'
storeFile file(' /** Change path to the keystore present in the root of the app in your machine **/')
storePassword 'hacker12345'
}
Debug builds will not work as the SHA-1 key unique to your system is not present in the firebase console.
I have downloaded and tested it with the current apk file and google sign in is working
nikhil-31 commented
Added a check to see if the device is connected to a network, if not connected will show an appropriate error message. Tested with all my google accounts and found working with APK in root folder.