[英]Google sign-in stopped working after I replaced the original google-services.json with one pertaining to Firebase
Here is my code for google sign-in 这是我的谷歌登录代码
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestEmail()
.build();
mGoogleApiClient = new GoogleApiClient.Builder(this)
.enableAutoManage(this, this)
.addApi(Auth.GOOGLE_SIGN_IN_API, gso)
.build();
I found the workaround. 我找到了解决方法。 When we integrate firebase messaging, we have to add FirebaseAuth for google sign-in.
当我们整合firebase消息时,我们必须为Google登录添加FirebaseAuth。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.