Answers for "native-googlesignin configuration is null!?"

C#
0

native-googlesignin configuration is null!?

/*
         * Uses google signin
         */
        void OnSignInFirebaseGoogleSignin()
        {
            if (GoogleSignIn.Configuration == null) {
                Debug.Log("AUTH Setting Google Default Configuration");
                GoogleSignIn.Configuration = new GoogleSignInConfiguration
                {
                    WebClientId = lifecycleManager.stagingModeToggle.isOn ? stagingWebClientId : productionWebClientId,
                    RequestIdToken = true
                };
            }

            Task<GoogleSignInUser> signIn;

             Debug.Log("AUTH Google Signing in, pop up should appear ");

                // this pops up the google signin.
                signIn = GoogleSignIn.DefaultInstance.SignIn();
Posted by: Guest on May-04-2020

C# Answers by Framework

Browse Popular Code Answers by Language