简体   繁体   English

Flutter Firebase 认证很慢

[英]Flutter Firebase Auth very slow

I'm creating a Flutter app with Firebase Authentication.我正在使用 Firebase 身份验证创建一个 Flutter 应用程序。 It worked fine first, but now the authentication is super slow the first time.它首先运行良好,但现在第一次身份验证超级慢。 When the user authenticates (either with email or anonymous) the first time, it works fine the next time - sign-out works, re-signing works fine.当用户第一次进行身份验证(使用 email 或匿名)时,下一次它工作正常 - 退出工作正常,重新签名工作正常。 It's the first time that is slow - it takes several minutes.这是第一次很慢 - 需要几分钟。

I have tried creating a new project in Firebase Console.我尝试在 Firebase 控制台中创建一个新项目。 I have tried upgrading to Blaze plan (from Spark).我尝试升级到 Blaze 计划(来自 Spark)。 I have tried re-creating the project.我已经尝试重新创建该项目。 Nothing seems to help.似乎没有任何帮助。

Any ideas?有任何想法吗?

I found it out, with a help of a friend.在朋友的帮助下,我发现了它。 It turned out that the problem was in my Google account for Firebase.事实证明,问题出在我的 Google 帐户 Firebase 中。 For some reason my account is lagging.由于某种原因,我的帐户滞后。 Perhaps some quotas are reached, or I'm blacklisted as a robot:).也许达到了一些配额,或者我被列为机器人黑名单:)。 Will check with Google.将与谷歌核实。

Just wanted to write a note to those struggling with a similar problem - try creating a new Google account, and start a fresh Firebase project with that account.只是想给那些遇到类似问题的人写个便条-尝试创建一个新的 Google 帐户,并使用该帐户开始一个新的 Firebase 项目。 It helped in my case.它对我的情况有所帮助。

It doesn't solve the problem at all, running the app on my phone blocks me to connect with my back-end application, waiting for a solution..它根本没有解决问题,在我的手机上运行该应用程序会阻止我与我的后端应用程序连接,等待解决方案..

It's the issue with the recent versions of Android Emulator on Windows platform.这是 Windows 平台上最新版本的 Android 仿真器的问题。 I was using the android emulator version 31.3.10 and had that problem.我使用的是 android 仿真器版本 31.3.10 并且遇到了这个问题。

Try downgrading the android emulator version to 31.2.9尝试将 android 仿真器版本降级到 31.2.9

Link to downgrade - https://developer.android.com/studio/emulator_archive降级链接 - https://developer.android.com/studio/emulator_archive

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM