繁体   English   中英

ionic3中的Firebase Google身份验证错误

[英]Firebase Google authentication error in ionic3

授权

signInWithGoogle(): firebase.Promise<any> {
return this.afAuth.auth.signInWithRedirect(new firebase.auth.GoogleAuthProvider());}

登录名

loginGoogle() {
this.authData.signInWithGoogle().then(() => {
  this.navCtrl.push(TabsPage);
}, error => {
  this.presentToast("Invalid user details");
});}

选择并从列表中进行身份验证时,打开Goog​​le帐户选择器,然后在移动设备上顺利运行的应用会显示一条消息

未为当前项目注册移动应用程序标识符

消息显示:

消息显示为...

请帮我解决这个问题。 谢谢!

我遇到了同样的问题,并且能够通过更新我的小部件ID(在config.xml文件中,以匹配Firebase控制台中的应用ID)来解决此问题。

您应该将App Android添加到您的Firebase帐户中,并在小部件ID中使用与您的配置相同的ID

在此处输入图片说明

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM