手机上的Firebase/angularFire2 v5身份验证问题 [英] Firebase / angularFire2 v5 authentication issue on mobile

查看:82
本文介绍了手机上的Firebase/angularFire2 v5身份验证问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建PWA,并尝试使用firebase/angularfire2 v5对我的用户进行Facebook或Google身份验证(我遵循了angularfire2 github网站上的教程). 当我在台式机或移动设备的常规"浏览器中使用该应用程序时,一切正常. 当我在移动设备上安装应用程序并尝试使用身份验证时,问题就开始了(在manifest.json中,属性显示设置为独立").我最终进入空白页.我尝试使用两种身份验证方法来解决此问题:弹出窗口和重定向.两者都有相同的问题.

I am creating a PWA and trying to use firebase/angularfire2 v5 to authenticate my users against Facebook or Google (I followed a tutorial that is present in angularfire2 github site). When I use the application in a "normal" browser in a desktop or mobile device everything works fine. The problem starts when I install the application in a mobile device and try to use the authentication (in the manifest.json the property display is set to "standalone"). I end up in a blank page. I tried to solve this using both ways to authenticate: popup and redirect. Both have the same issue.

我缺少任何配置吗?您是否遇到过类似的问题?您是如何解决的?

Am I missing any configuration? Did you face similar issues? How did you fixed it?

推荐答案

我认为这与影响独立PWA的Chrome错误有关:

I think this is related to this Chrome bug which affects standalone PWAs: https://bugs.chromium.org/p/chromium/issues/detail?id=771418

这篇关于手机上的Firebase/angularFire2 v5身份验证问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆