Google Play Games
You must setup your application for Play Services, the following guide will help you through that.
- http://developer.android.com/google/play-services/games.html
- https://developers.google.com/games/services/console/enabling
Getting the SHA1 signature
If you are using the current Play App signing approach you can get the signatures of your certificates directly from the Play console, in the "App integrity" section.
This is the suggested method for the current release process through the Play Store as the certificate you are using to sign your AAB is likely just the upload certificate and not the release certificate used when the application is installed through the store.
Debugging
When debugging locally you will likely be signing an APK with your upload certificate. Hence when adding your SHA1 we suggest you also add both the SHA1 for your release certificate and the SHA1 for your upload certificate. This is so play games services will work locally when directly testing on a device.
SHA1 From A Certificate
You can use the keytool utility to get the details of your p12
certificate directly, the SHA1 signature will be listed in the output from the following command:
keytool -list -v -keystore /path/to/your/certificate.p12
keytool
location
Flash Builder Debug Certificate
Add your game in the Google Play Developer Console
Create an entry for your game in the Google Play Developer Console. This enables Game services for your application, and creates an OAuth 2.0 client ID, if you don't have one yet. You must perform this step even if you have created a client ID for your game in the Google Developers Console.
- Record the following credential information for later.
- Your game's application ID - you will need to enter this into the apm project config or your manually managed manifest additions
- Your game's OAuth 2.0 client ID
- (Optional) Add achievements and leaderboards to your game by following the steps described in Configuring Achievements and Leaderboards.
- Add test accounts for other members of your team to test your game by following the steps described in Publishing Your Game Changes.