ionic3 中的 Firebase Google 身份验证错误

Firebase Google authentication error in ionic3

auth.ts

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

login.ts

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

打开 google 帐户 select 或当 select 和帐户从列表中进行身份验证时,应用程序在移动设备中运行顺畅,它会显示一条消息

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

消息显示:

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

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

您应该将 App Android 添加到您的 Firebase 帐户,并使用与您在小部件 id

中的配置相同的 ID