question

mateo-perez avatar image
mateo-perez asked

Unity + GPG Login + Playfab

So I've been trying to add Google Play Games login services using playfab and unity. I followed this series: https://www.youtube.com/watch?v=Z4HZPnQtURI

Also this one: https://learn.microsoft.com/en-us/gaming/playfab/features/authentication/platform-specific-authentication/google-sign-in-unity

And a few more that are on the docs and internet, all of them with no luck. GPG keeps giving a status of "Canceled" when trying to login.

Any help? Tried to re-do the process over and over a few times already and I'm stuck, GPG login popup doesn't appear and user is not created on playfab.

Not sure what could I be missing, OAuth credentials are marked as Web application, but videos and tutorials about only GPG use an Android application instead, only playfab seems to use the Web Application credential type.

If any info is needed in order to get some help, feel free to ask and I will provide it. The tutorials series and docs frfom above have been followed step by step and making sure everything was as it was supposed to be, but nope :(

unity3dsdksdocumentation
2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mateo-perez avatar image mateo-perez commented ·

For whoever might come across this. Workaround:

Follow this guide: https://forum.unity.com/threads/tutorial-authentication-with-google-play-games.1409151/#post-9019345

Playfab guide, so that when you are creating the OAuth, make sure to and the endpoints and uri redirects as specified by playfab documentation in here: https://learn.microsoft.com/en-us/gaming/playfab/features/authentication/platform-specific-authentication/google-sign-in-unity

I created a total of 3 OAuth Client IDs and 1 Service Account as follows: - OAuth Client ID -> Android -> SHA1 certificate should match "SHA1 Upload key certificate" from Google console - OAuth Client ID > Android > SHA1 certificate should match "SHA1 App signing key certificate" from Google console - OAuth Client ID > Web > The one from the playfab documentation - Service account > The one from the playfab documentation

The 2 android credentials is mostly so the Google Play Games login works wether I use a version downloaded from the store or an APK just made from Unity directly to the phone.

Also, and the most important, use GPG v10.14, for some reason the version 11+ is not working with playfab API. This is not stated anywhere.

0 Likes 0 ·
Infer Wang avatar image Infer Wang mateo-perez commented ·

Thanks for sharing,

0 Likes 0 ·

1 Answer

·
Infer Wang avatar image
Infer Wang answered

The video is out of date, you may directly follow the document.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mateo-perez avatar image mateo-perez commented ·

Yes, that's what I first did. The document didn't work, that's how I ended up going to the video :/

0 Likes 0 ·
Infer Wang avatar image Infer Wang commented ·

I‘m sorry to tell that but “Authentication Canceled” error is returned from Google Play Game Service Authentication API which is not related to the PlayFab integration. Our document is newest, you can try reconfigure. Or You may seek for google support’s help.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.