After extending BaseGameActivity on MainActivity, when you open the game it shows the animation of connecting to Google Play Games but at the end shows the message Failed to sign in. How can i solve it?
Asked
Active
Viewed 118 times
1 Answers
0
You may follow this documentation that describes how to troubleshoot issues that you might encounter while developing Android games with the Play Games SDK.
If you are unable to sign players into your game, first make sure that you have followed the instructions to create your client IDs and configure the games services.
If you still encounter sign-in errors, check the following items to make sure that your game is set up correctly.
- Check your metadata tags
- Check your package name
- Check the certificate fingerprint
- Check that test accounts are enabled
If you are using Proguard and are seeing errors on the obfuscated APK, check the target API level on your AndroidManifest.xml. Make sure to set it to 17 or above.
Here's another reference which might also help: Google Play Services fails to connect
abielita
- 13,147
- 2
- 17
- 59
-
After a day i am able to find out maybe the reason of the error might be this "You have wrong OAuth2 related configurations, please check. Detailed error: UNREGISTERED_ON_API_CONSOLE." – anish ghimire May 30 '17 at 16:25