question

yogev avatar image
yogev asked

Google sign in

where to get the Google App License Key? I can't find it on Services & APIs

Another thing I use the docs https://learn.microsoft.com/en-us/gaming/playfab/features/authentication/platform-specific-authentication/google-sign-in-unity but its a bit outdated the PlayGamesClientConfiguration is removed from the SDK what should I do? or there is a different way to do it?

sdks
10 |1200

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

1 Answer

·
Simon Cui avatar image
Simon Cui answered

That doc is outdated. May I know what specific login methods that you want to implement? If you want to use Google Play login, you can refer to Google’s official documentation and call Authentication - Login With Google Play Games Services - REST API (PlayFab Client) | Microsoft Learn.

8 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.

yogev avatar image yogev commented ·

Thank you I used the google play games but I am getting this error +02:00 ERROR: Returning an error code.

I do see it loading but after that this error ^ I added myself as a tester I followed the setup docs with the google with the client id etc

this is my code , the button is connected to the googleSignIn

https://pastecode.io/s/pq4bn9wf

and another thing is player login via facebook does LoginWithFacebookRequest return the success result in the result.InfoResultPayload.PlayerProfile.DisplayName if it has? I want to set a random display name because when you login from facebook he won't have it so I want to check if he already have displayname

oh and when they login with facebook and google can I use GetPlayerCombinedInfoRequestParams ?

0 Likes 0 ·
Simon Cui avatar image Simon Cui yogev commented ·

ERROR: Returning an error code.

Could you provide more detail information of this error? Such as the error code and error message as well as what line indicated the error.

Another thing is player login via facebook does LoginWithFacebookRequest return the success result in the result.InfoResultPayload.PlayerProfile.DisplayName if it has? When they login with facebook and google can I use GetPlayerCombinedInfoRequestParams ?

Yes. If you include "InfoRequestParameters": {"GetPlayerProfile":true} in the request body, you can get DisplayName from result.InfoResultPayload.PlayerProfile.DisplayName.

0 Likes 0 ·
yogev avatar image yogev Simon Cui commented ·

Thank you, about the error this is the code that I am using https://pastecode.io/s/pq4bn9wf

this is log from logcat - https://pastecode.io/s/h4hmd57t

I can't really see where the error comes from because I get it from the profiler on my mobile phone

0 Likes 0 ·
Show more comments

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.