Y
Y
YakutD2020-10-06 15:19:30
OAuth
YakutD, 2020-10-06 15:19:30

How to log in with Google using Firebase in Unity?

Step by step I follow the official firebase guide. Got to the next point:

Authenticate with Firebase
Follow the instructions for Android and iOS to get a Google login ID.
After the user successfully logs in, replace the access token with the Firebase credentials and authenticate with Firebase using the Firebase credentials:


Further there is a code example with parameters googleIdToken, googleAccessToken . The guides that firebase refers to in the first paragraph are not related to Unity, and did not help me in any way ._.

I have read that I have to get these parameters directly from google first and the plugin suggested for this is https://github.com/googlesamples/google-signin-unity . But using it leads to a million errors and conflicts with firebase, even installing it on a clean project without dependencies fails. Trying to resolve results in the following: ArgumentException: Requested value 'X86' was not found. Haven't been able to beat it for a few days now.

Tell me what options I have to do authorization through Google? The project is multiplatform.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
YakutD, 2020-10-06
@YakutD

Partial import of the package helped, namely only the first item (Google Sign In) . This is provided that you, like me, imported Firebase and EDM4U through UPM earlier

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question