Ionic 3 Firebase Google Auth重定向到本地主机而不是应用程序

Ionic 3 Firebase Google Auth重定向到本地主机而不是应用程序,firebase,ionic3,angularfire2,google-authentication,Firebase,Ionic3,Angularfire2,Google Authentication,我在我的爱奥尼亚3项目中使用。我已经实现了Facebook和Google登录,这在以前是有效的,但不知何故它停止了工作(可能是因为Firebase SDK或Google的更改?) 我现在面临的问题是,一旦用户使用重定向通过谷歌登录,他就会登录,但不会在我的应用程序中重新获得重定向。相反,google只是在重定向上显示此页面: 以下是我用于登录的代码: private oauthSignIn(provider: AuthProv) { if (!(<any>window)

我在我的爱奥尼亚3项目中使用。我已经实现了Facebook和Google登录,这在以前是有效的,但不知何故它停止了工作(可能是因为Firebase SDK或Google的更改?)

我现在面临的问题是,一旦用户使用重定向通过谷歌登录,他就会登录,但不会在我的应用程序中重新获得重定向。相反,google只是在重定向上显示此页面:

以下是我用于登录的代码:

private oauthSignIn(provider: AuthProv) {
      if (!(<any>window).cordova) {
        return this.afAuth.auth.signInWithPopup(provider).then((user) => {
          this.user = user.user;
        });
      } else {
        return this.afAuth.auth.signInWithRedirect(provider)
          .then(() => {
            return this.afAuth.auth.getRedirectResult().then(result => {
              this.user = result.user;
            });
          });
      }
    }
},

我已经尝试并补充了:

<preference name="CordovaWebViewEngine" value="CDVUIWebViewEngine" />
<allow-navigation href="http://*" />
这也没用

我的Google WebClient具有与Firebase控制台类似的正确的ClientID、Secred和重定向URL


那么我该如何解决这个问题呢?

不确定,但正如你所说的“谷歌只是在重定向时显示这个页面”,这可能是因为google plus关闭了。我也有同样的问题。你解决了吗?不确定,但正如你说的“相反,谷歌只是在重定向上显示这个页面”可能是因为谷歌plus关闭了。我也有同样的问题。你怎么解决的?
<preference name="CordovaWebViewEngine" value="CDVUIWebViewEngine" />
<allow-navigation href="http://*" />
"cordova-plugin-ionic-webview": "4.1.1",