Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / GetGameCenterPlayerDisplayName() on iOS issue

Author
Message
Walkman1014
9
Years of Service
User Offline
Joined: 12th Mar 2015
Location: United States
Posted: 15th Oct 2017 09:00
Hello all,

I was wondering why the command 'GetGameCenterPlayerDisplayName()' returns "Me" on iOS. I have a public nickname set up in my game center... but this command still returns "me". This command works just fine when I run it on Android though. I am using tier 1. Any ideas/suggestions? I keep searching the forums... but have found nothing regarding this command (let alone this issue on iOS)
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 16th Oct 2017 15:46
That command passes the value of "[[GKLocalPlayer localPlayer] displayName]" straight through to your app, so I'm not sure why it would be equal to "Me".
Walkman1014
9
Years of Service
User Offline
Joined: 12th Mar 2015
Location: United States
Posted: 16th Oct 2017 19:10
Found the issue: (and there is not much you can do about it Paul... it is an Apple thing). See the link at the end.

Basically, it is an alias for the local player. However, when submitting scores to leaderboards, achievements, and etc... it will use the player's chosen nickname. Again... it is only going to produce "Me" for the local player's screen. Works for me.

Take care!

https://stackoverflow.com/questions/15385236/game-center-get-real-name

xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 19th Oct 2017 18:14 Edited at: 19th Oct 2017 18:16
Edit: Nevermind. Apple's recommendation is to use displayName vs. alias for local display so my suggestion was not great.

Login to post a reply

Server time is: 2024-04-19 07:52:48
Your offset time is: 2024-04-19 07:52:48