[英]How to solve Internal error in flutter to use firebase_auth
I am using stable version of flutter and firebase_auth latest version but it give me error again and again我正在使用稳定版本的颤振和 firebase_auth 最新版本,但它一次又一次地给我错误
flutter: PlatformException(ERROR_INTERNAL_ERROR, An internal error has occurred, print and inspect the error details for more information., null)
please help me to solve me this problem .请帮我解决这个问题。 Thanks in advance…..
提前致谢…..
make sure your desired method is enabled in the firebase console eg.确保在 Firebase 控制台中启用了您想要的方法,例如。 anonymous sign-in, email/pass sign-in.
匿名登录,电子邮件/密码登录。
If enabling Sign-in methods in Firebase console/Authentication didn't help you make sure your key is not restricted in Google Cloud Platform:如果在 Firebase 控制台/身份验证中启用登录方法无法帮助您确保您的密钥在 Google Cloud Platform 中不受限制:
It helped in my case, hope it helps you as well.它对我有帮助,希望它也能帮助你。 Cheers!
干杯!
My issue was that my simulator had cached a user from a different project (I have dev/prod firebase projects)我的问题是我的模拟器缓存了来自不同项目的用户(我有 dev/prod firebase 项目)
I had to log out and register again.我不得不注销并重新注册。
Hopefully, this saves someone as much head-scratching as I've just been through.希望这可以像我刚刚经历的那样节省一些令人头疼的事情。
仍然遇到相同问题的任何人都可以重新启动模拟器或检查您的互联网连接
Do also double-check the values in your GoogleService-Info.plist.还要仔细检查您的 GoogleService-Info.plist 中的值。 I got this same error after using an incorrect API_KEY.
使用不正确的 API_KEY 后,我得到了同样的错误。
不要忘记在Authentication
中添加在Sign-in Domain
添加的DynamicLink
的动态链接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.