Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/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 $authWithOAuthPopup流以auth.firebase.com/blank/page.html结尾_Ionic Framework_Angularfire - Fatal编程技术网

Ionic framework $authWithOAuthPopup流以auth.firebase.com/blank/page.html结尾

Ionic framework $authWithOAuthPopup流以auth.firebase.com/blank/page.html结尾,ionic-framework,angularfire,Ionic Framework,Angularfire,我正试图通过谷歌在基于angularfire的ionic应用程序中授权应用程序用户。整个流程在我的工作站的chrome浏览器(使用ionic serve)上运行良好,但在我的android设备上部署时失败: $authWithOAuthPopup在Android上使用时(通过“ionic run”,即作为apk安装)会导致浏览器卡在auth.firebase.com/blank/page.html中 在html中(通过“ionic serve”)一切正常,所以我假设firebase和googl

我正试图通过谷歌在基于angularfire的ionic应用程序中授权应用程序用户。整个流程在我的工作站的chrome浏览器(使用ionic serve)上运行良好,但在我的android设备上部署时失败:

$authWithOAuthPopup在Android上使用时(通过“ionic run”,即作为apk安装)会导致浏览器卡在auth.firebase.com/blank/page.html中

  • 在html中(通过“ionic serve”)一切正常,所以我假设firebase和google的配置正常。cordova.js被正确地包括在内
  • 已安装cordova inapp浏览器,可以打开其他URL。我已经将firebase(io)和google域名列入了白名单,并且还允许其他一切。我正在使用cordova插件inappbrowser 1.0.2-dev“inappbrowser”和 cordova插件白名单1.0.0“白名单”。我也尝试过inappbrowser的旧版本
  • 我没有使用ionic livereload来避免任何潜在的跨域/代理问题
  • 远程调试时,不会报告任何错误:$authWithOAuthPopup控件在缩小的firebase.js代码的深处丢失,并且永远不会返回angularfire级别
  • 生成以下流量(详细URL如下): 1) firebase代码调用auth.firebase.com/v2//auth/google,2)accounts.google.com返回3)auth.firebase.com/v2。。。。传输到4)auth.firebase.com/blank/page.html
  • 在空白页上,我可以看到饼干。
谢谢你提前给我的建议

webflow中的详细URL:

发起者:firebase.js:147: https://auth.firebase.com/v2/gastrub/auth/google?&v=js-2.2.6&transport=redirect&suppress\u status\u codes=true&requestId=p2k757pm4hsjv5531z7045voxcyuelsi0wt3&redirecto=https%3A%2F%2Fauth.firebase.com%2Fblank%2Fpage.html

https://accounts.google.com/o/oauth2/auth?response_type=code&redirect_uri=https%3A%2F%2Fauth.firebase.com%2Fv2%2fasthub%2Fauth%2Fgoogle%2Fcallback&scope=%20profile&state=%7B%22firebase%22%3A%22gasthub%22%2C%22%22p2k757pm4hsjv5531z7045voxyuelsi0wt3%22%2C%22%2F重定向到%22%3A%2Fauth.firebase.com%2F%2F%2Fauth.firebase.html%22传输%22%3A%22重定向%22%2C%22v%22%3A%22js-2.2.6%22%7D和客户端id=434498505800-p5RJVL6BasVLSF4FH3TA9EJ4PT2I28.apps.googleusercontent.com

https://auth.firebase.com/v2/gastrohub/auth/google/callback?状态=%7B%22firebase%22:%22gastrohub%22,%22requestId%22:%22p2k757pm4hsjv5531z7045voxcyuelsi0wt3%22,%22重定向到%22:%22https://auth.firebase.com/blank/page.html%22,%22传输%22:%22重定向%22,%22v%22:%22js-2.2.6%22%7D&code=4/vgz4uj8sgiswewkqhcmixzbwdu_F9llfWKaRfEhOMI

https://auth.firebase.com/blank/page.html