To be able to sign in to your game before you release it on the On the Testers page, add the email addresses of any users who need The resources snippet looks like the following example: You will need the snippet to set up the Google Play Games services
Get resources and copy the Android resources snippet somewhereĬonvenient. Then, onĪny of the Events, Achievements, or Leaderboards pages, click Want to use any immediately, you can create a placeholder entry). Play Games resources you want to use with your game (if you don't On the Events, Achievements, and Leaderboards pages, create any SHA-1 fingerprint in the Firebase console.) (If you don't see your Android client ID, be sure you set your game's In the OAuth client field, select your project's Android client ID.Still on the Play Games services configuration page, click Sure this is the same client ID you specified when you enabled In the OAuth client field, select your project's web client ID.On the Play Games services configuration page, click Project from the list, and then click Use. Play Games services > Setup & Management > Configuration.Ĭlick Yes, my game already uses Google APIs, select your Firebase You will need to specify your project's web serverĬlient ID and client secret, which you got from the APIs console.Ĭonfigure Play Games services with your Firebase app information On the Sign in method tab, enable the Play Games sign-in Then, in the Firebase console, open the Authentication section. In the OAuth 2.0 client IDs section, open the Web client (autoĬreated by Google Service) details page.Open your Firebase project in the Google APIs console credentials page.Server client ID identifies your Firebase project to the Google Play
Your APK must be signed with this key, including during development.Įnable Google Play Games as a sign-in provider:įind your project's web server client ID and client secret. alias YOUR-KEY-NAME -keystore PATH-TO-KEYSTOREĪlternatively, you can get the SHA hash of your signing certificate with the You can get the SHA-1 fingerprint of your key with the keytool command: Of the Firebase console, using the key you set in Unity. Set your game's SHA-1 fingerprint from the In which you registered your Unity project. In the Firebase console, go to the Firebase project Requirement applies not just for publishing, but also during development of Your APK must be signed for Play Games sign-in to work-this Select or create a keystore and key, which will be used to sign your Android Then, under Build Settings > Player Settings > Publishing Settings, Settings set the Android package name of your game. In the Unity Editor, under Build Settings > Player Settings > Other Before you begin Set up your Unity projectĪdd the Firebase config file and the Firebase Unity SDK to your Unity projectīe sure to import FirebaseAuth.unitypackage. Important: You can use Google Play Games services sign-in only on Android. PlayGamesAuthProvider to generate a Firebase credential, which you can use toĪuthenticate with Firebase. To use Google Play Games services sign-in withįirebase, first sign in the player with Google Play Games, and request an You can use Google Play Games services to sign in players to an Android gameīuilt on Firebase and Unity.