Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/454.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/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
Javascript Firebase身份验证在iOS登录时被卡住,没有错误_Javascript_Firebase_Firebase Authentication - Fatal编程技术网

Javascript Firebase身份验证在iOS登录时被卡住,没有错误

Javascript Firebase身份验证在iOS登录时被卡住,没有错误,javascript,firebase,firebase-authentication,Javascript,Firebase,Firebase Authentication,我已经用电子邮件和密码设置了firebase auth登录的最基本实现 firebase.auth().signInWithEmailAndPassword(email, password).then(() => { console.log('Logged in') window.location.href = "./home.html" }).catch(function (error) { console.log(error) });

我已经用电子邮件和密码设置了firebase auth登录的最基本实现

firebase.auth().signInWithEmailAndPassword(email, password).then(() => {

    console.log('Logged in')
    window.location.href = "./home.html"

}).catch(function (error) {

    console.log(error)

});
由于某些原因,在iOS上,登录过程有时会在等待通过EmailandPassword()登录的承诺得到解决时陷入困境。我没有收到任何错误消息

重新启用登录机制的唯一方法是清除浏览器缓存

这是一个已知的问题吗?在过去的一年中,我的前两个应用程序都遇到了这个问题


编辑:经过进一步的尝试和错误,我发现问题通常发生在登录后,让iPhone进入睡眠状态,将其唤醒,然后注销。然后,signOut()函数也会出现同样的问题。

结果表明,这个问题与我的项目设置中没有将域列入白名单有关。我之所以没有注意到关于oAuth的控制台警报,是因为它在大多数情况下都能工作,即使在显示的情况下也是如此。所以我认为这对它没有任何影响


答案是在

中提出的,结果证明问题与我的项目设置中没有将域列入白名单有关。我之所以没有注意到关于oAuth的控制台警报,是因为它在大多数情况下都能工作,即使在显示的情况下也是如此。所以我认为这对它没有任何影响


答案是在

中建议的。请编辑问题以显示未按预期方式运行的代码,并进行更详细的解释。如果您认为存在错误,并且能够通过特定步骤重现,则应向Firebase支持部门提交错误报告。好的,道格,我会的。请编辑问题以显示没有按您预期的方式工作的代码,并进行更详细的解释。如果您认为存在错误,并且能够通过特定步骤重现错误,您应该向Firebase支持部门提交错误报告。好的,道格,可以。