question

dan avatar image
dan asked

GetPlayerCombinedInfoRequest not working in Unity?

Hello there.

I am trying to use GetPlayerCombinedInfoRequest to retrieve a player's Game Center ID (among other things).

When I send the request in Postman it returns the info fine...

But in Unity the data is returned as NULL...

Am I doing something wrong?

:(

Dan

postman.png (33.0 KiB)
breakpointcrop.png (20.3 KiB)
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

·
dan avatar image
dan answered

OK... I think I see the issue.

In Postman I am using the SERVER version of GetPlayerCombinedInfo, but in Unity I am using the CLIENT version.

So I suppose my question is actually... how do I get Game Center info using the client API? :|

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.

brendan avatar image brendan commented ·

For another player? You can't. Some info, like the GameCenter ID, is not returned to the client for other players, as they're potentially PII for some, and a security issue for others. If you want to return that info to the player, you'll need to use the Server API call in Cloud Script and return the info you want to share with the player.

1 Like 1 ·
dan avatar image dan brendan commented ·

Cloud Script, eh? I'll give that a shot. Cheers. :D

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.