Firebase Authentication FirebaseNetworkException: A network error (such as timeout, interrupted connection or unreachable host) has occurred

后端 未结 17 1635
感情败类
感情败类 2020-12-06 04:55

I\'m creating an authentication workflow for my android app. I\'m allowing users to sign in with username/password and various OAuth providers. I\'m validating emails and pa

相关标签:
17条回答
  • 2020-12-06 05:11

    I resolve the problem fixing the date of my cell phone were one year late, when I fixed the date, everything worked well again and the error disappear, I hopping this help you

    0 讨论(0)
  • 2020-12-06 05:12

    I was facing the same issue. what solved my problem by clear extra space in API_KEY, so my suggestion is to check your GoogleService-Info.plist for

    1. API_KEY is proper (without extra spaces)
    2. GOOGLE_APP_ID
    3. CLIENT_ID

    I think this might help you

    0 讨论(0)
  • 2020-12-06 05:12

    If you are using Genymotion, it could be that you did not activate Open Gapps (in the top right corner)

    0 讨论(0)
  • 2020-12-06 05:16

    Can also happen if your authDomain is set improperly in your firebase keys for web projects.

    0 讨论(0)
  • 2020-12-06 05:16

    I have also got the same error and there are sometimes very small things which we forget Like -> Turn On Internet as

     com.google.firebase.FirebaseNetworkException: A network error (such as timeout, interrupted connection or unreachable host) has occurred
    

    This is FirebaseNetwordException there might be case when Host is not Reachabe like mentioned above so check you connectivity

    aslo check weather you have provided Internet Permissions in Manifest or not.

    hope it will solve your problem

    0 讨论(0)
  • 2020-12-06 05:18

    I have faced this problem after searching a lot i got the solution, In my case it was happening due to the restriction of background data.


    If you turn off background data of Google Service Framework. Check & turn on it. It worked for me.

    0 讨论(0)
提交回复
热议问题