Game Center Login does not always work (screenshot attached)
Hi guys!
I had some issues with Game Center in my most recent game.
So generally I can access the highscore list and it does post the highscore.
What ever when you the first time start the app for some users the POST TO Game Center + show Game Center highscore list button does not trigger these behaviors.
If you then go to your iPhone preferences and log out of Game Center and go back to the game it does log into game center correctly and it works.

Is this a known issue or is maybe caused because I use 3 game center behaviors on the same button?
Comments
I'd definitely recommend not having all the GC behaviors in one rule, that can cause problems. I just spent a bunch of time trying to get GC working smoothly in my game and I got very good results by putting the GC login behavior in a timer as soon as the game scene loads. I have an actor with a show leader board behavior when pressed and when the game ends I have a post score behavior in a button, but this could also be automatically done.
The other thing I figured out by doing some research is if you log out of GameCenter under preferences you will get unpredictable results. Apple seems to have changed how this works. They assume if you log out of GameCenter you want to stay logged out. So if you want to use GameCenter you have to log back in before it will work in your game - this may be the cause of your issues?
@RondoRocket I think about doing your suggestion with the timer like after 2 seconds do login game center.
I also wonder if a button with behavior "post to Game Center" automatically will do the login process if not logged.
@RondoRocket Hmmmm
So I created roughly 20 adhoc builds the last hour.
Testing around with Login behavior.
So I remove it out of all of my buttons and put the login behavior in my background with a timer after 2 seconds.
It worked for 2 builds then it didn't worked anymore..
Then I made one removing the timer.
I'm really totally lost which solution I should go for now.
I realized that games like temple run also just try to connect to game center at the beginning. Not again -> you have to restart the app to get chance to connect to the center again.
But somehow also the solutions above don't work on my adhoc.
Not using any condition.. Still it doesn't bring up game center (without login in outside of the game)
I second on this.
and behavior "post to Game Center" automatically do the login process if not logged.
But for me the process is so slow that I already changed scene and it just pop up.
So I recommend go with @RondoRocket ways.
@BigDave try doing some debugging. There is a built in game attribute called "Platform Connected" that should allow you to see if you are connected to game center. Create an arbitrary actor that has a rule saying if game.platformConnected is true display text "Connected", otherwise display text "Not Connected". If it is connected and still not logging in I have another way, but try that for now.
@zweg25
On the total left there is a "t" so it says not connected as an result of
platform connected = true
Display Connected
false:
Display Not connected
I just remember that as I created another app in the iOS Dev center i saw that Game Center was not activated for bumpy ball in the APP ID provisioning.
I mean the hole highscore and everything works fine since its enabled in iTunes connect.
What ever I changed the APP ID in the iOS dev center long before all of the try outs.
So it could only be that the new provision profile change has not worked.