firebase / quickstart-unity

Firebase Quickstart Samples for Unity
https://firebase.google.com/games
Apache License 2.0
835 stars 433 forks source link

[Question] Game Center authentication #1240

Closed MartinVavrek closed 2 years ago

MartinVavrek commented 2 years ago

After linking game center provider to firebase account, providerData contains provider gc.apple.com with UserId. This UserId does not match teamPlayerId nor gamePlayerId which should be accessible via Unity Social API like this:

UnityEngine.SocialPlatforms.Impl.UserProfile) Social.localUser).gameId; UnityEngine.SocialPlatforms.Impl.UserProfile) Social.localUser).id;

UserId from firebase is most probably legacy playerId, which is deprecated by iOS. How can we pair logged game center user with provider data from firebase account?

Here is old issue where no answer was provided: https://github.com/firebase/quickstart-unity/issues/586

Thanks

[REQUIRED] Please fill in the following fields:

[REQUIRED] Please describe the question here:

paulinon commented 2 years ago

Hi @MartinVavrek,

Thanks for the report. Based on your description, it seems that the issue falls outside the Unity SDK as it talks about the backend. Kindly reach out to Firebase Support where one of our agents can handle this. That being said, I'll close this for now.