Google Play Game Services Sign-In - Guide
Install and configure the Google Sign-In SDK [IDEN-Google-02]
Prerequisites
This guide assumes the following prerequisites have been completed:
Steps | Details |
|---|---|
| • See Beamable's Getting Started for more info |
| • Unity → File → Build Settings |
| • Unity → File → Build Settings |
| • See Google's play-games-plugin-for-unity#configure-your-game for more info
|
Configure Unity Project
Follow these steps to get started:
Step | Detail |
|---|---|
| • Follow installation guide from play-games-plugin-for-unity#configure-your-game. |
| ![]() • Unity → Window → Beamable → Open Toolbox • Click the "Config" Button |
| ![]() • Set "GooglePlayGames" to true |
| • See Google's offline-access#create_an_associated_server-side_web_application_for_your_game tutorial for how get ![]() |
Additional iOS Setup
Make sure that your game flow takes into account fact that the iOS is not supported platform by Google Play Game Services.
User Interface
Right now it is not available to perform third login party using GPGS without writing any code. In order to perform third party login add AccountManagementFlow prefab to scene, create MonoBehaviour script with AccountManagementSignals as SerializeField, assign field using component from AccountManagementFlow instance and call LoginThirdParty method from AccountManagementSignals. Example class can look like below:
using Beamable.AccountManagement;
using Beamable.Common.Api.Auth;
using UnityEngine;
public class ExampleClass : MonoBehaviour
{
[SerializeField] private AccountManagementSignals _signals;
public void LoginToGPGS()
{
_signals.LoginThirdParty(new ThirdPartyLoginArgument{ThirdParty = AuthThirdParty.GoogleGamesServices});
}
}Next Steps
From here, the player can edit account details including account name and account avatar.
The player can switch accounts and sign in with various methods. See the Accounts feature page for more info.
When finished, the player can close the Account Management Flow window and return to the game-specific content.
Updated 2 months ago



