移动设备上的 Firebase/angularFire2 v5 身份验证问题 [英] Firebase / angularFire2 v5 authentication issue on mobile

查看:22
本文介绍了移动设备上的 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 错误有关:https://bugs.chromium.org/p/chromium/issues/detail?id=771418

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天全站免登陆