简体   繁体   中英

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

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. 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:

  1. go to https://console.cloud.google.com/
  2. open APIs & Services -> Credentials tab在此处输入图像描述
  3. open your keys Android/iOS/FLutter
  4. Select "Don't restrict key" or carefully check APIs you want to enable. 在此处输入图像描述

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)

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. I got this same error after using an incorrect API_KEY.

不要忘记在Authentication中添加在Sign-in Domain添加的DynamicLink的动态链接

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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