Firebase Authentication App Creation Failed

Hello guys,
I have a problem. Even though I tried many times, I could not solve this problem. Below I share my project settings and codes with you. Thank you in advance to those who will help.
Unity version 2022.3.12f
Scripting : .NET Standart 2.1

    private void Start()
    {
        try
        {
            PlayGamesPlatform.Activate();
            PlayLoginn();
        }
        catch (Exception e)
        {
            infoTxt.text = "Try error: " + e.ToString();
            throw;
        }


    }
    public void PlayLoginn()
    {
        PlayGamesPlatform.Instance.Authenticate((success) =>
        {
            if (success == SignInStatus.Success)
            {
                infoTxt.text = "Login In.";
                Firebase.FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread(task =>
                {
                    if (task.Result == Firebase.DependencyStatus.Available)
                    {
                        firebaseTxt.text = "Dependency in";
                        connectToFirebase();
                    }
                    else
                    {
                        firebaseTxt.text = "Dependency Error";
                    }
                });
            }
            else if (success == SignInStatus.InternalError)
            {
                infoTxt.text = "InternalError: " + success.ToString();
            }
            else
            {
                infoTxt.text = "Error: " + success.ToString();
            }
        });
    }

    void connectToFirebase()
    {
        PlayGamesPlatform.Instance.RequestServerSideAccess(true, code =>
        {
            try
            {
                authCode = code;
                FirebaseAuth fbAuth = FirebaseAuth.DefaultInstance;
                Credential fbCred = PlayGamesAuthProvider.GetCredential(authCode);
                fbAuth.SignInWithCredentialAsync(fbCred).ContinueWithOnMainThread(task =>
                {
                    if (task.IsCanceled)
                    {
                        firebaseTxt.text = "Sign in cancelled";
                    }
                    if (task.IsFaulted)
                    {
                        firebaseTxt.text = "fireBase Error: " + task.Result;
                    }
                    Firebase.Auth.FirebaseUser user = fbAuth.CurrentUser;
                    if (user != null)
                    {
                        firebaseTxt.text = "Signed in as: " + user.DisplayName;
                    }
                });
            }
            catch (Exception e)
            {
                throw;
            }
        });
    }

What target platform are you running this on?

What version of the SDK are you running?

Have you included the appropriate configuration files for your default platform? The fact that Firebase.FirebaseApp has a 0x00000 memory address makes me think its unable to generate a default app. Please include other warnings or errors you may have seen.

Additionally, if you have time consider running through this debug guide and respond with what you find.

1 Like

Thank you for your interest.

SDK Version: Google Play Services 0.11.01 SDK Version: Firebase 11.6.0 Platform: Android

The StreamingAssets/ folder is not being created automatically, so I am creating it manually (yet, this did not solve the issue). I can send and receive data in play mode within Unity. However, when I try it on an Android device with the APK, it doesn’t work. It automatically gets created in Unity version 2020.3, but I encounter this issue in version 2022.3f. The sole problem is the automatic creation of the StreamingAssets/ folder and its contents not happening in version 2022.3, which is preventing the creation of the FirebaseApp. Thank you for your assistance.