Xamarin.Android : The connection to Google Play services was lost due to service disconnection.

John Dennis 1 Reputation point
2021-11-26T06:43:13.043+00:00

I am currently trying to test an Xamarin.Android App on both Emulators and Physical Device.
I am using Firebase to try and register users or login with already existing users.

On either of emulator and physical device. I get the response failure message:

The connection to Google Play services was lost due to service disconnection.

void RegisterUser(string name, string phone, string email, string password)
{
taskCompletionListener.Success += TaskCompletionListener_Success;
taskCompletionListener.Failure += TaskCompletionListener_Failure;

        try
        {
            if (mAuth != null)
            {
                mAuth.CreateUserWithEmailAndPassword(email, password)
                     .AddOnSuccessListener(this, taskCompletionListener)
                     .AddOnFailureListener(this, taskCompletionListener);
            }



        }
        catch (System.Exception)
        {


        }


    }

With FailureListener throwing the error message.

Anything I missed?

Developer technologies .NET Xamarin
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.