Game Center Player Display Name Always “me” in the sandbox

旧街凉风 提交于 2019-12-07 14:39:15

问题


I am using the user's Game Center display name and player ID in order to maintain their profile on my server. When I went to test this, everything appears to execute properly, but the user's display name for my sandbox account shows up as "Me," rather than my display name attached to my account, "Billybobbo."

Is this supposed to happen in sandbox mode?

Console:

2013-08-31 18:51:37.054 [App Name][53230:907] Player ID: G:1682017882
2013-08-31 18:51:37.065 [App Name][53230:907] Player Display Name: Me

回答1:


For anyone who may want to do something similar to what I am doing, Apple hasn't made these properties very clear. The property that I wanted to access in this case was not the user's displayName, but actually the user's alias.



来源:https://stackoverflow.com/questions/18554226/game-center-player-display-name-always-me-in-the-sandbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!