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

后端 未结 17 1645
感情败类
感情败类 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:02

    I have faced this problem when geting IdToken from firebase user Object. I did not know what was the real source of error it was just showing FirebaseNetworkException but I also couldn't catch that error so I just used the General Exception Object to catch this Error.

    as follow

    try {
       //your code that is throwing this error
    }catch (Exception e){
       //handle the exception thrown
    }
    

提交回复
热议问题