Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Showing An Internal Error has occured. [7:]

I'm using Firebase as my cloud data in my android app. I'm using it's Firestore and Authentication feature. But when I try to signup it is showing me :

"An internal error has occurred. [7:]"

So, to solve this I came to search for the solution so I found that if I update the google_service.json file everything is going to be right. But When I updated it sometimes it is working and after some time it again shows me the same error.

like image 881
Ashmit Pathak Avatar asked Jan 26 '23 21:01

Ashmit Pathak


1 Answers

I get this error while testing my app behavior when deliberately disabling my mobile internet connection and trying to login to my app using firebase Auth.

Try testing your network connectivity on Activity launch and display a toast

public static boolean getConnectivityStatus(Context context) {
        ConnectivityManager cm = (ConnectivityManager) context
                .getSystemService(Context.CONNECTIVITY_SERVICE);

        NetworkInfo activeNetwork = cm.getActiveNetworkInfo();
        if (null != activeNetwork) {
            if (activeNetwork.getType() == ConnectivityManager.TYPE_WIFI)

                return true;

            if (activeNetwork.getType() == ConnectivityManager.TYPE_MOBILE)
                return true;
        }
        Toast.makeText(context, "No network connection!", Toast.LENGTH_SHORT).show();
        return false;
    }
like image 186
shakesgar Avatar answered Jan 30 '23 04:01

shakesgar