Guide to Linking Play Games Services
Last updated
Last updated
Achievements and leaderboards of Google's “Play Games Services” can be linked with ONE store products. “Credentials” must be added to the game project of “Play Games Services” in order to link.
Even if Google Play and ONE store have different package names, the Play Games Services can be linked in the same way.
After accessing https://play.google.com/console, follow the steps below to proceed with the settings. For more information, please click here.
Go to the [All Apps] menu and click the app you want to link.
Click the [Grow > Play Games Services > Setup and Management > Configuration] menu.
In the [Credentials] section, click [Add Credential].
In the [OAuth Client] section of the [Add Credential] screen, select the OAuth Client ID, then click [Save Changes].
If you need to create a new OAuth client ID,
Click [Create OAuth Client].
Click the link to create an OAuth Client ID on the Google Cloud Platform of the popup.
Enter the information for [Create OAuth Client ID] on the Google Cloud Platform, then click [Create].
You can check the generated OAuth Client ID from [Google Cloud Platform > Credentials].
You can select the generated OAuth client ID by clicking [Refresh OAuth Clients] on the [Add Credential] screen in [Grow > Play Games Services > Setup and Management > Configuration].
Run games from Google Play and ONE store on your device to see if the achievements and leaderboards have been shared.
If Play Games Services is set up, Firebase will automatically be linked. You can check the linkage information after accessing https://console.firebase.google.com and following the steps below.
Go to [Your Firebase Projects] and click the project.
You can check that both apps are registered in the top part.
Click the [Setting] icon next to [Project Overview], then click [Project Settings].
You can check that both apps are registered in the [Your Apps] section of the [General] tab.
Set up build.gradle.
Check Gradle > app > Tasks > build > assemble.
Register the apk of “release” to each store.