ios - 在 IOS 中,弹出窗口在尝试使用 firebase 身份验证时关闭(signInWithPopup 方法)
问题描述
我有一个反应应用程序,我在其中启用了 firebase 身份验证功能,它工作正常,然后我使用 wkwebview 从这个反应应用程序构建 ios 应用程序。一切正常,除了当我单击登录 google btn 时,弹出窗口打开,然后在 10 秒后关闭,响应代码为 auth/popup-closed-by-use。但它在 android 和 web 中运行良好。
我使用firebase身份验证功能有一个代码示例
firebase.auth().signInWithPopup(provider).then(function (result) {
console.log(result);
}.catch(e=>{
console.log(e)
})
解决方案
推荐阅读
- c++ - 在没有未定义行为的情况下重用双精度浮点缓冲区
- r - 使用二进制而不是源文件在 R 中安装包:如何更改默认值
- google-app-engine - 谷歌应用引擎 api_server vs 模块
- ios - 为什么 uncaughtexceptionhandler 在发布版本中不起作用
- c# - 如何在.net core的库中包含文件
- ruby-on-rails - 为什么我的副本也会影响原件?
- javascript - 附加base64编码文件nodejs
- python - 在 Python 中传递指向 DLL 函数的指针
- qt - 如何将渐变设置为 QML TreeView 背景?
- python - python - 尝试使用 Apache 和 mod_wsgi 运行 Django 应用程序时,request.get("https://www.example.com") 不起作用