Google Play Games Services is one of the most useful features for Android game developers using Unity. It allows players to sign in using their Google accounts and access cloud saves, achievements, leaderboards, multiplayer systems, and other gaming features directly inside Android games.
Adding Google Play Games Login improves user experience and makes games feel more professional. Many successful mobile games use Google Play Games Services to increase player engagement and retention.
In this complete Unity tutorial, we will learn how to integrate Google Play Games Login in Unity step by step using the latest setup process for 2026.
This guide covers:
- Google Play Console setup
- Creating Play Games Services
- SHA1 configuration
- Unity plugin installation
- Google authentication
- Unity login scripting
- Common errors and fixes
What is Google Play Games Services?
Google Play Games Services is a platform provided by Google for Android games. It offers features such as:
- Google Sign-In
- Achievements
- Leaderboards
- Cloud Save
- Player Profiles
- Multiplayer Services
Unity developers commonly use it to create a connected gaming experience for Android players.
Why Add Google Play Games Login?
Integrating Google Play Games Login provides several advantages:
- Easy player authentication
- Cloud save support
- Leaderboard integration
- Achievement systems
- Professional user experience
- Better player retention
Players can continue progress across multiple devices using their Google account.
Requirements Before Starting
Before integrating Google Play Games Login, make sure you have:
- Unity installed
- Android Build Support installed
- Google Play Console account
- Android package name configured
- Working Android build
You should also configure your game package name correctly before starting Play Games setup.
Step 1 – Create Game in Google Play Console

Open Google Play Console and create your Android game application.
Inside Play Console:
- Create new app
- Select Game category
- Complete app information
After app creation:
- Open Grow section
- Select Play Games Services
- Create Play Games project
This links your Unity game with Google Play Games Services.
Step 2 – Configure Game Details
Inside Play Games Services setup:
- Add game name
- Select game category
- Choose default language
- Save configuration
You may also upload:
- Game icon
- Feature graphics
- Achievement artwork
Step 3 – Create OAuth Credentials
Google Play Games Login requires OAuth authentication credentials.
Inside Google Play Console:
- Open Play Games Services
- Select Setup and Management
- Open Configuration
- Create OAuth client
You will need:
- Package name
- SHA1 certificate fingerprint
Step 4 – Get SHA1 Certificate Fingerprint
SHA1 fingerprint is required for secure authentication.
You can generate SHA1 using:
keytool -list -v -keystore your_keystore.jks
For debug keystore:
keytool -list -v -keystore %USERPROFILE%\.android\debug.keystore
Default password:
android
Copy the SHA1 fingerprint and add it inside Google Play Console.
Step 5 – Download Google Play Games Plugin for Unity-Download Link
Download the official Google Play Games plugin for Unity.
Import the Unity package into your project:
- Assets
- Import Package
- Custom Package
After importing:
- Open Window
- Select Google Play Games
- Choose Setup
- Android Setup
Step 6 – Configure Android Setup in Unity
Inside Android Setup:
- Enter Android resource definition
- Paste Web Client ID
- Enable nearby connections if needed
Click Setup.
Unity will automatically generate required configuration files.
Step 7 – Add Login Script in Unity
Create a new C# script called:
GooglePlayLogin.cs
Add the following login setup:
using UnityEngine;
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using UnityEngine.SocialPlatforms;
public class GooglePlayLogin : MonoBehaviour
{
void Start()
{
PlayGamesPlatform.Activate();
PlayGamesPlatform.Instance.Authenticate(ProcessAuthentication);
}
internal void ProcessAuthentication(SignInStatus status)
{
if (status == SignInStatus.Success)
{
Debug.Log("Login Successful");
}
else
{
Debug.Log("Login Failed");
}
}
}
Attach this script to a GameObject inside your first scene.
Step 8 – Build and Test on Android Device
Google Play Games Login does not work properly inside the Unity editor.
Always test using:
- Real Android devices
- Signed APK or AAB
- Correct package name
- Matching SHA1 fingerprint
Upload the game to:
- Internal testing
- Closed testing
inside Play Console before testing authentication.
How to Add Leaderboards
Google Play Games also supports leaderboard systems.
Inside Play Console:
- Create leaderboard
- Copy leaderboard ID
Submit score using:
Social.ReportScore(score, "leaderboard_id", success =>
{
Debug.Log("Score Submitted");
});
Show leaderboard UI:
Social.ShowLeaderboardUI();
How to Add Achievements
Achievements increase player engagement in mobile games.
Create achievements inside Play Console and copy achievement IDs.
Unlock achievement:
Social.ReportProgress("achievement_id", 100.0f, success =>
{
Debug.Log("Achievement Unlocked");
});
Common Errors and Fixes
1. Authentication Failed
Usually caused by:
- Incorrect SHA1 fingerprint
- Wrong package name
- Unsigned APK
2. Login Popup Not Appearing
Check:
- Internet connection
- Play Games app installed
- Correct OAuth configuration
3. Plugin Conflicts
Sometimes Firebase or AdMob dependencies may conflict with Play Games plugin versions.
Using External Dependency Manager can solve many compatibility problems.
Best Practices for Google Play Games Integration
- Use cloud save carefully
- Avoid forcing login immediately
- Provide guest mode option
- Test authentication thoroughly
- Use achievements meaningfully
Good implementation improves user retention without annoying players.
Advantages of Google Play Games Login
- Professional Android game experience
- Player progress synchronization
- Social gaming features
- Better retention rates
- Competitive leaderboards
- Cross-device support
Conclusion
Adding Google Play Games Login in Unity is one of the best ways to improve Android game quality and player engagement in 2026.
Using Google authentication, achievements, leaderboards, and cloud save systems creates a much more connected gaming experience for players.
Although the setup process may seem complicated at first, proper configuration of SHA1 fingerprints, OAuth credentials, and Unity plugins makes integration straightforward and stable.
For Unity developers building Android games, Google Play Games Services remains one of the most valuable free tools available today.
You may also like:

