Firebase Google Sign In Unity Tutorial | Google Firebase User Authentication Unity

Опубликовано: 25 Февраль 2025
на канале: ZGameStudio
42,506
421

Hey Guys! Welcome To My Youtube Channel Today I will show you how to create a firebase google authentication system with unity. It's a very simple and easy integration so you guys just follow some steps.

1). Create a New Firebase Project
2). Choose Authentication and enable Google SignIn From SignInMethod.
3). Create New Unity Project
4). Download & Import GoogleSignIn SDK in your unity project.
5). Import Firebase Auth SDK in your unity project
6). Configure Project with bundle id and keystore also choose android platform.
7). Find SHA Keys FingurePrints of Keystore.
8). Here is the command which you use to find SHA keys FingurePrints

keytool -list -keystore KeystorePath
9). This command put it in CMD (Command Prompt) To Find SHA Fingure Print of the keystore i can show you how
to do it.
10). Upload the keystore SHA-1 & SHA-256 fingureprint to firebase console.
11). Copy the webClientID and create a new script and paste the webClientID in to script i will show how to do it.
12). After this you can download the googleservices.json file from firebase settings and import it to unity
13). After import then need to resolve the google dependencies
14). Create a script name googleSignin.cs and Follow the coding
15). After coding done comeback to unity and create a new object and attach the script to this object
16). Create a SignIn Button and call signin function on button click event
17). You can test googlesignin on android device only not editor.


Assets references:-
1). Google SignIn SDK (version 1.0.4)
https://github.com/googlesamples/goog...
2). Google Sample Project (version 1.0.4)
https://github.com/googlesamples/goog...
3). Google Firebase Console
https://console.firebase.google.com

If you want any service related to unity then feel free contact me on fiverr and upwork.

1). Fiverr Profile: https://www.fiverr.com/kamrankhan713
2). Upwork Profile: https://www.upwork.com/freelancers/~0...

Here is my contact e-mail
[email protected]

If you want this complete project then contact me on any platform Thank you.