Android Firebase Authentication for Google Signin fails

后端 未结 4 1151
感动是毒
感动是毒 2021-01-14 15:16

I followed the firebase documentation from top to bottom and implemented a simple google Sign in option to my app. However, when I try to signin, the process halts after sel

4条回答
  •  深忆病人
    2021-01-14 16:12

    In my previous test app using Firebase FriendlyChat, I have encountered similar failure in Sign In, but I have solved it by going Google API console (https://console.developers.google.com/apis/credentials?project=) then download "client_secret.json" (in my case, I need to rename the downloaded filename "client_secret_xxxxx.json") for your Android client, put this file in your AndroidStudio project under "/src/main/resources" (create "resources" folder if not exist) then try to compile and run your Android app again.

    Summary: you need 2 json files : "google-services.json" from Firebase Console and "client_secret.json" from Google API Console.

    Hope this solve your problem.

提交回复
热议问题