Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework firebase身份验证错误-谷歌登录android设备_Ionic Framework_Firebase Authentication_Google Signin_Capacitor - Fatal编程技术网

Ionic framework firebase身份验证错误-谷歌登录android设备

Ionic framework firebase身份验证错误-谷歌登录android设备,ionic-framework,firebase-authentication,google-signin,capacitor,Ionic Framework,Firebase Authentication,Google Signin,Capacitor,我正在开发一个使用谷歌登录的应用程序,firebase认证。当我在浏览器上运行它时,它工作正常,但当我创建一个apk文件并在我的android设备上使用它时,它不会登录,当我尝试登录时,它会重定向到gmail,当我单击该帐户时,它会给出本地主机错误。我正在使用电容器部署我的Ionic应用程序。以下是我的谷歌登录代码: this.authService.signInWithGoogle() .then((result: any) => { if (result.additi

我正在开发一个使用谷歌登录的应用程序,firebase认证。当我在浏览器上运行它时,它工作正常,但当我创建一个apk文件并在我的android设备上使用它时,它不会登录,当我尝试登录时,它会重定向到gmail,当我单击该帐户时,它会给出本地主机错误。我正在使用电容器部署我的Ionic应用程序。以下是我的谷歌登录代码:

this.authService.signInWithGoogle()
   .then((result: any) => {
      if (result.additionalUserInfo) {
        this.authService.setProviderAdditionalInfo(result.additionalUserInfo.profile);
      }
      
      this.redirectLoggedUserToProfilePage();

   }).catch((error) => {
      console.log(error);
   });