Android Studio

Migration overview

Google Play Games Services, games v1 SDK relies on Google Sign-In for Android which is deprecated and will be removed from the Google Play services Auth SDK (com.google.android.gms:play-services-auth) in 2025. New games apps can use games v1 until 2025. The Google Sign-In removal introduces dependency issues for existing games apps. Migrate existing games apps from the games v1 SDK to the games v2 SDK resolves dependency issues introduced by the Google Sign-In removal.

Google Play Games Services v1 to v2 migration is a significant update that simplifies development and supports cross-platform gaming. Google Play Games Services v2 decouples platform and in-game identity, acting as a platform-level identity system that automatically authenticates players at launch. Platform identity is now separate from the primary in-game account system, which you must manage independently using tools like Sign in with Google or proprietary backends. The Play Games Services v2 SDK integration uses the player ID for platform features like achievements and leaderboards without altering existing onboarding or login flows.

This document helps you understand the interactions between the games application and various SDKs. Because of the official deprecation timeline, you must follow this migration guide's architectural principles, pathways, and player communication strategies to ensure player continuity.

SDK interactions

The diagrams illustrate the interaction between a games application on Android, Google Mobile Services (GMS) Core, Play Games Services, and a third-party (3P) games server. It highlights how the application uses Google's services for authentication and game features, while also interacting with a separate third-party system.

games v2 (Current)

Interaction between a Games Application on
    Android, GMS Core, Play Games Services,
    and a third-party (3P) games server.
Interaction between a Games Application on Android, GMS Core, Play Games Services, and a third-party (3P) game server. (click to enlarge).

games v1 (Legacy)

Interaction between a Games Application on
    Android, GMS Core, Play Games Services,
    and a third-party (3P) games server.
Interaction between a Games Application on Android, GMS Core, Play Games Services, and a third-party (3P) games server. (click to enlarge).

The following is a brief overview of the components and SDKs:

  • Games Application.
  • GMS Core also called as Google Play Services.

  • Play Games Services gateway.
  • Play Games Services server.
  • Third-party games gateway.
  • Third-party games server.
  • Why migrate your title to Play Games Services v2

    The transition from Play Games Services v1 to v2 is a major architectural modernization that simplifies development and supports cross-platform gaming.

    Unlike v1, which served as a primary in-game identity system, Play Games Services v2 decouples platform and in-game identity. It acts as a platform-level identity system that automatically authenticates players at launch to manage features like achievements and leaderboards.

    You must now manage your game's primary in-game account system independently using tools such as Sign in with Google or proprietary backends. The Play Games Services v2 SDK lets games use the Play Games Services player ID to access platform features without changing existing onboarding or login flows. This document guides you through the migration, covering architectural principles, pathways, and player communication strategies. Adherence is critical for player continuity given the official deprecation timeline.

    Compare platform authentication and in-game authentication

    In Play Games Services v2, the concept of "logging in" is decoupled into two distinct layers:

    Platform authentication

    Play Games Services functions strictly as a platform engagement layer. It manages the player's relationship with the Google Play Games ecosystem (Achievements, Leaderboards, and Events) rather than with authenticating into a specific game account or inventory.

    In-game authentication

    Developers are responsible for managing the "In-Game Account" (IGA). This is the identity system that binds a player's progress, inventory, and currency within your game.

    Migration requirement: Bind in-game accounts with Google Open ID instead of Play Games Services Player ID

    In Play Games Services v1, developers used Play Games Services as the primary identity provider. A "Google Play" button would link a player's In-Game Account (IGA) directly to their Player ID.

    Play Games Services v2 shifts this by providing automatic, silent platform authentication at launch. The resulting Player ID is now used exclusively for platform features like leaderboards and achievements, separate from the main account login.

    Games must now manage primary identity independently through a dedicated login screen offering methods like "Sign in with Google" (SiWG) or other social accounts. Crucially, Play Games Services v2 must not be used as a primary identity system.

    This architectural shift requires a corresponding change in how developers structure their account data. The In-Game Account (IGA) must be decoupled from being primarily bound to the Player ID.

    Instead, the IGA must now be bound to a stable, primary identifier that is independent of Play Games Services. The recommended identifier is the Open ID provided by the Sign in with Google (SiWG) flow. This Open ID serves as the unique, persistent key for the player's primary account within your system.

    However, the IGA could still be linked to the Player ID as a secondary binding. This secondary link serves two critical functions:

    1. It allows the game to continue tracking and updating progress for Play Games features (achievements, etc.) associated with that specific player.
    2. It enables the "Seamless Restore" functionality, allowing the game to automatically log a player into their most recently used IGA only on a new device or after a reinstall.

    Understanding this decoupled identity model is the key to unlocking the correct technical migration path for your game.

    Feature comparison

    This table gives you a feature comparison between the games v1 and games v2 SDKs:


    Feature

    games v1 SDK

    games v2 SDK

    Authentication

    Integration with play-services-auth required.

    Simplified and streamlined; no play-services-auth required.

    Authorization

    Additional code for success, failures, and retries.

    Managed by the SDK

    Server Access Token

    Can request additional OAuth 2.0 scopes with GoogleSigninClient.

    Additional code for error handling during authentication.

    Can request three basic OAuth 2.0 identity scopes with GamesSignInClient when requesting server-side access to Play Games Services web APIs.

    For more information, see Server-side access to Play Games Services and Retrieve server authentication codes.


    Sign-in process

    Uses GoogleSigninClient.

    Additional code for handling of boilerplate code for automatic authentication and error handling.

    Uses GamesSignInClient.

    SDK handles boilerplate code, automatic authentication, and error handling. The "signing in" is separated into two distinct layers:
    • Platform authentication: handled by the Play Games Services v2 SDK.
    • In-game authentication: handled by the game.

    Welcome Popup

    Additional code required.
    Developers can control its placement and timing.

    No Additional code required. Consistent user interface across all games configured with games v2 SDK.

    Dependencies

    Requires play-services-auth.

    The Games module takes care of authorization and authentication. You need not add any additional dependencies.
    Sign-out

    Uses GoogleSignInClient.signOut.

    Sign-out API is not required because Play Games Services v2 is a persistent platform identity.

    Multiple Play Games Services accounts and per-game settings

    Account management is possible within your game.

    Users can change the Play Games Services profile in the mobile device settings. For more information, see how to switch Play Games profiles on mobile.