ionic3 中的 Firebase Google 身份验证错误

1 firebase firebase-authentication ionic3 angular

auth.ts

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

登录.ts

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

打开谷歌帐户选择器和应用程序在移动设备中顺利运行时从列表中选择和帐户进行身份验证它会显示一条消息

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

消息显示:

消息显示是...

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

Way*_*kie 5

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