I can't figure it out. I have a feeling that something is happening on services end, but then there's also some weird behavior on my end. Like it works when I just built new apk, it allows me to log in with any of my two users on my phone, but once the apk goes live on Google Play it doesn't allow me to log in anymore. Maybe it's just a coincidence though. Sometimes it just starts working randomly while no changes were made, but even if it starts working for me it doesn't for other devices/users. It shows that green Google Play Games rectangle, then shows a panel where I choose a user, then that green circle rotates on screen while trying to log in, then it just disappears and nothing happens and that user bubble on top of screen never shows up, so user authentication never happens in the end. I'm losing my mind. What might be the issue?
Build
GooglePlayGamesPlugin-0.9.39a.unitypackage
Games
_com.axodendritic.fortytwosecs
com.axodendritic.pooliorigins_
Android log
1. 06-23 12:11:47.948 9265 9666 W GamesServiceBroker: Client connected with SDK 8487000, Services 11055436, and Games 39080036
Basically what happens is: Unity's apk works fine, but once it's Google Play one, Google Play Games stops working.
I just checked the app of mine I have installed from Google Play yesterday, sign in wasn't working, it does now. What's going on? Can anyone from Google confirm it's services issues or plugin issues? Currently I've tried to downgrade to previous plugin build version and uploaded that apk to Google Play.
I just had a rough idea, could it have something to do with Google Play App Signing somehow?
Previous build 0.9.39 does it as well.
I also have this enabled: https://developers.google.com/games/services/android/antipiracy
If that somehow may be the cause, then it works backwards, because non Google Play apk can log in, but Google Play one can't.
Just blind guessing.
0.9.38a same issue. It's probably Google Play related other than the plugin itself. Hands down.
I can indeed again confirm that Unity apk works fine, Google Play apk doesn't.
Same problem.
Anyone Please give a link to download GooglePlayGamesPlugin-0.9.38.unitypackage and GooglePlayGamesPlugin-0.9.36.unitypackage ,i can not find
Look history for: https://github.com/playgameservices/play-games-plugin-for-unity/commits/master/current-build (Committing automated building of packages commits)
Also: https://github.com/playgameservices/play-games-plugin-for-unity/tree/master/old-builds
Same problem. I've been working on this for days with no solution.
Well, hopefully some guys from Google will solve it soon enough.
I can't start promoting my games while this thing isn't working, boo :(
Have you had luck with any version? I had this up and running a few months ago but now this strange error others are getting.
Nope, i tested with - GooglePlayGamesPlugin-0.9.39a, -0.9.39, -0.9.38a, -0.9.38, -0.9.37
Yeah, it looks like it's not plugin's fault at all, it's either Google Play apk setup conflict with Google Play Games services or services are bugged on their end. No freaking idea as well, tried everything I could, spent days trying to figure it out, no idea.
Okay guys, here's the solution to the whole thing if your case is the same as mine. As I mentioned before I'm using Google Play App Signing feature of Google Play Console for my apps. If you do as well, then you need to go to https://console.developers.google.com/ and then choose API manager from menu there, and go to credentials of your app (if your app isn't there yet you should add it using the search there). When you're in credentials of your app just replace SHA-1 certificate line with the one that shown in your App signing (it's in Release management menu of Google Play Console). There you'll see app signing certificate info, you need that SHA-1 line from there, then you just replace the one you have in credentials with that one, by default in credentials you have the one from your keystore you generate with Unity (it's also shown in the bottom, where it says Upload certificate in your Google Play Console page). Once you save new credentials you'll be able to sign in in the game right away. I hope it'll help you, guys. Cheers!
Thanks! It helped me
Cheers!
2017-06-25 10:03 GMT+08:00 Artyom notifications@github.com:
Okay guys, here's the solution to the whole thing if your case is the same
as mine. As I mentioned before I'm using Google Play App Signing feature of
Google Play Console for my apps. If you do as well, then you need to go to
https://console.developers.google.com/ and then choose API manager from
menu there, and go to credentials of your app (if your app isn't there yet
you should add it using the search there). When you're in credentials of
your app just replace SHA-1 certificate line with the one that shown in
your App signing (it's in Release management menu of Google Play Console).
There you'll see app signing certificate info, you need that SHA-1 line
from there, then you just replace the one you have in credentials with that
one, by default in credentials you have the one from your keystore you
generate with Unity (it's also shown in the bottom, where it says Upload
certificate in your Google Play Console page). Once you save new
credentials you'll be able to sign in in the game right away. I hope it'll
help you, guys. Cheers!—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/playgameservices/play-games-plugin-for-unity/issues/1800#issuecomment-310877125,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AcSajZ6HF7ULLishXz6Is9ldRKwwQZrvks5sHb_ugaJpZM4ODVM5
.
@tyomklz
In my case
default setting capture
You says default sha1 in credential is upload certificate sha1 (2D:E3:15:F4:F2:5A...) and replace with app certificate sha1 (62:4E:D0:B7:8E...)
But in my case
default sha1 in credential is equal to app certificate sha1
Is it right for my understanding your solution?
thanks for your reading
I replaced (62: 4E: D0: B7: 8E ...) on (2D: E3: 15: F4: F2: 5A ...),
And the problem was solved
2017-07-01 19:25 GMT+08:00 leehotae notifications@github.com:
@tyomklz https://github.com/tyomklz
In my case
default setting capture
[image: capture1]
https://user-images.githubusercontent.com/21328168/27761647-49a52446-5e9b-11e7-9d77-175a902f7b7c.PNG
[image: capture2]
https://user-images.githubusercontent.com/21328168/27761650-53478534-5e9b-11e7-86a2-018e8bdf8716.PNGYou says default sha1 in credential is upload certificate sha1
(2D:E3:15:F4:F2:5A...) and replace with app certificate sha1
(62:4E:D0:B7:8E...)But in my case
default sha1 in credential is equal to app certificate sha1Is it right for my understanding your solution?
thanks for your reading
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/playgameservices/play-games-plugin-for-unity/issues/1800#issuecomment-312426672,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AcSajeAD9x4uC6e6t0PggvjkJA8-5GaTks5sJiymgaJpZM4ODVM5
.
@RocksteadyDog
thank you
it works fine too
In my case, all are setted correctly. but Authentication still fails with 0.9.39a.
I've checked SHA1 from Keystore, and signed APK with that keystore, and console.developers.google.com
I see SHA1 is same for 3 places.
but I can't login to google play.
I am using Google play service version is 10.2.0
Please help me.
I've got exactly the same problem. SHA1 is RIGHT. The same everywhere. And still I can't connect to Google Play Games.
Things I can add on this case:
I am having the same problem. When I linked my app It had App signing SHA1 in API manager by default. Then the app was trying to sign in but failing every time. I replaced Upload Certificate with App Signing Certificate, now even signing in screen doesn't pop up.
One more question, are you guys using API key feature from API manager(the option above OAuth 2.0 client ID)?
I have the same problem as @GuillaumZ. I have all the SHA-1 setup properly but still it does not allow signing in. SIGN_IN status: ERROR_NOT_AUTHORIZED
I resolved this by using the 'Upload Certificate' SHA-1 in the API Console Credentials. However, on production, you will have to use the proper 'App Signing' SHA-1.
what about achievement and leaderboard feature? Are they too working fine? Because I have tried this method too but the score wasn't updating on the leaderboard.
If those things are not working fine try this, It is explained here in detail. https://github.com/playgameservices/play-games-plugin-for-unity/issues/1834#issuecomment-321785101
The leaderboard is also working fine. My scores got updated and displayed properly on the leaderboard.
Nice! The solution @leehotae is the best for me.
Copy the sha1 from upload sha1 in play.google console and paste in inside credentials in developer.console.
Thank you
Listen carefully. Copy SHA-1 from "Upload certificate", not "App signing certificate". it worked for me after struggling all day long.
Unity 2017.3.0f3
play-games-plugin 0.9.42
works :D
Hi, I had authorization problems and I try the sha 1 option, but in my case it was just that I was using an alpha verification list but it wasn't autorized in Play Services configuration. So, I could authorize it in Tests Section for the app on the Google Play Console.
I have make Keystore by Unity and Upload in "APP SIGNING PRIVATE KEY"
in App signing, Now I dont know how to "UPLOAD PUBLIC KEY CERTIFICATE"
Please help me guys
Here's video unity google play game plugin
I've tried both App signing certificate and Upload certificate SHA-1 in credentials. None seem to work.
I was very confused about the Upload Certificate vs App Signing Certificate, according to this article your APK is signed with your Upload Key, but its distributed with the App Signing Key.
That means that if you manually install your APK into your device (through ADB or Google Drive for example) It will be signed with the Upload Certificate
In the other hand, if you install it through Play Store it will be signed with the App Signing Certificate
Edit your Google APIs linked app OAuth credentials to one of the following:
I had 2 devices, My Phone with the APK downloaded from playstore and a Tablet with the APK installed via ADB (Unity Build and Run). Both had same version of the APK!
Google APIs Credentials was setup to use Upload Certificate
Authentication was working fine on my Tablet but not on my Phone
I edited my Google APIs Credentials to use App Signing Certificate
It now works fine on my Phone but not on my tablet.
It all makes sense in the world now!
To make sure I uninstalled the game from my Tablet and reinstalled from Play Store, and now it works on both devices!
I danced for some minutes. (Very important step of the process)
Hope this helps someone. :-)
I wonder why documentation won't say anything about this stuff and have us look around for hours!
I had this issue for a long time and found out Unity wasn't signing the app as expected. Make sure to check the SHA1 of your APK and compare it to the one in your API Credentials.
Here is how to see the SHA1 of your APK - https://stackoverflow.com/questions/11331469/how-do-i-find-out-which-keystore-was-used-to-sign-an-app
(I added my incorrect SHA1 to API Credentials and it works for now - testing is a lot easier now!)
Well, a year late but, I also had this problem, I added a new OAuth (android) with the upload SHA-1 and also in the firebase project and it's working. Thanks.
Taken from Cross Platform Native Plugins
But, the info here is very general and works with any plugins.
For Google Play Services to sign in successfully, you need to make sure the apk from where you are logging in should be allowed to make requests to google servers.
Each apk built with a keystore has a SHA fingerprint. You need to make sure the SHA fingerprint is added in the google cloud.
You can fetch it with keytool command (check here on how to get SHA for each environment )
One per each environment. In total 3 environments (dev, release and production)
Release build uses the keystore you set in publishing settings of player settings
Google play store build which uses google play signing.
If you want all the above builds to authenticate successfully, add all 3 fingerprints. Else only the required environment.
Debug ( keytool -list -v -keystore "PATH_TO_DEBUG_KEYSTORE" -alias androiddebugkey -storepass android -keypass android)
Release (Get from Google play console -> Your App -> Setup -> App signing -> Upload key certificate )
Apk/AAb downloaded from Google play store (Get from Google play console -> Your App -> Setup -> App signing -> App signing key certificate )
Google Play Console. Check here for details on how to add a SHA fingerprint.
Most helpful comment
Okay guys, here's the solution to the whole thing if your case is the same as mine. As I mentioned before I'm using Google Play App Signing feature of Google Play Console for my apps. If you do as well, then you need to go to https://console.developers.google.com/ and then choose API manager from menu there, and go to credentials of your app (if your app isn't there yet you should add it using the search there). When you're in credentials of your app just replace SHA-1 certificate line with the one that shown in your App signing (it's in Release management menu of Google Play Console). There you'll see app signing certificate info, you need that SHA-1 line from there, then you just replace the one you have in credentials with that one, by default in credentials you have the one from your keystore you generate with Unity (it's also shown in the bottom, where it says Upload certificate in your Google Play Console page). Once you save new credentials you'll be able to sign in in the game right away. I hope it'll help you, guys. Cheers!