In order to access Google Play games services functionality, your game needs to provide the signed-in player’s account. This documentation describes how to implement a seamless sign-in experience in your game. Show
The Play Games Services v2 SDK brings a number of improvements that increase the number of users signed into your game, and make development easier:
New client integration with Play Games Services Sign In v2This section shows how to do a new client integration with Play Games Services Sign In v2. Add the Play Games Services SDK dependencyAdd the Play Game Services SDK dependency to
your app's root-level
Define the Play Games Services project IDTo add the Play Games Services SDK project ID to your app, complete the following steps:
Initialize the SDKInitialize Play Games SDK in the
Get the sign-in resultWhen your game launches, it will always attempt to sign in the user. To authenticate the user, you must verify that the user successfully signed in, and then get their Player ID. To verify the sign in attempt, call
If the user chooses not to sign in when the game launches, you may optionally choose to continue showing a button with the Play Games icon, and attempt to sign in the user again by calling After verifying that the user is signed in, you can retrieve the Player ID to identify the user. For example:
Migrate to Play Games Services Sign In v2This section describes how to migrate your client code from Play Games Services v1 to v2. The new SDK contains four major changes to increase sign-in success which you should be aware of:
Additionally, your game will experience additional logins due to automatic sign-in when the game launches. As a result, you should review your quota management to ensure that your game does not exceed the login request quota. Target the new SDK Maven repositoryIf you are using the Gradle build system, this can be done by changing your dependency to the
Initialize the SDKInitialize the Play Games SDK in the
Remove sign-in and sign-out callsIf you specify no extra scopes, migrating your use case should be straightforward.
Update client class namesWhen creating clients (e.g.
Request server side accessWhen requesting server side
access use
With Play Games Services v2 you cannot request any additional scopes. If you still need to request additional scopes, then we recommend you use the Google Sign In SDK alongside Play Games Services. Migration from GoogleApiClientFor older existing
integrations your game may be depending on the GoogleApiClient API variation of the Play Games Services SDK. This was deprecated in late 2017 and replaced by “connectionless” clients. To migrate you can replace the
Bagaimana cara logout Google Play?Cara Logout Dari Akun Google Play Store. Pertama, masuk pada menu “Setting”, kemudian carilah akun “Google”.. Kemudian pilih akun Google Tesebut, misalnya [email protected].. Kemudian pilih “Hapus Akun” untuk melakukan penghapusan pada akun Google pada android anda.. Selesai.. Bagaimana cara menghapus akun play game?Menghapus profil Play Game dan semua data Play Game. Di tablet atau ponsel Android, buka aplikasi Play Game .. Di bagian atas, ketuk Lainnya. Setelan.. Ketuk Hapus akun & data Play Game Hapus secara permanen. Hapus secara permanen.. Bagaimana cara menghapus akun Google di Play Store?Menghapus Akun Google atau akun lain dari ponsel. Buka aplikasi Setelan di ponsel Anda.. Ketuk Sandi & akun. ... . Di bagian "Akun untuk", ketuk akun yang ingin dihapus. ... . Untuk mengonfirmasi, ketuk Hapus akun.. Bagaimana cara menghapus akun game yang terhubung ke gmail?Anda dapat menghapus data Play Game dari Akun Google Anda untuk satu atau semua game yang telah dimainkan.. Buka Hapus Layanan Google.. Klik Play Game.. Baca pesannya dan konfirmasikan dengan mencentang Wajib diisi.. Klik Hapus Play Game.. |