gameNetwork.request("setHighScore") does not work on iOS. GameCenter bug?

Hello,

I wanted to integrate Gamecenter and Google Play Games Service (GPGS) into my App.

GPGS works perfectly fine and I also got achievements working with GameCenter.

My issue is, that I’m unable to set highscores in GameCenter.

I use the following function for request, but the players highscore inside the GameCenter remains zero.

game\_network.request( "setHighScore", { localPlayerScore = { category = "leaderboard\_best", value = 50}, listener = postScoreSubmit } )

What I tried so far:

I double checked the values and cetegories submitted, they are all correct.

I tested with 3 different Apple IDs and several devices and all got the same problem.

I read about a GameCenter highscore bug, but that was back in september.

So could anybody give me a hint or point me at the problem, cause the app should be shiped in the near future and it would be great to have GameCenter support in it.

Many thanks for any help or advice :slight_smile:

Greeting

Torben

Hi Torben,

How are you testing? Can you list which 3 devices you’ve tested on, and which versions of iOS are installed on them?

Thanks,

Brent

Hi Brent,

I use a self scripted log window, which shows printed messages inside the app.

I use it to display the event returned to the request listener function.

Unfortunetly I wasn’t able to get the real device system log.

Curious thing is, that the listener function seems not to be called.

Testing devices are:

iPad Air

iPad mini

iPhone 4S

Which all use the latest iOS version. 8.1.2 I belive.

Hi @torbenratzlaff,

Have you enabled the GameCenter “sandbox” mode as described in this document?

http://docs.coronalabs.com/plugin/gameNetwork-apple/init.html

Brent

Hi Brent,

I’m not sure, have to check that.

I think it’s strange, that the achievements are working and the leaderboard not.

@Brent

I checked and I hab enabled the sandbox mode.

So that wasn’t the error.

Hi Torben,

Which is the bug you read about last September? Do you have a case # for that? Did anybody file an actual case for it?

Thanks,

Brent

Hi Brent,

I reffered to general issues with GameCenter, like this one in august last year:

http://forums.toucharcade.com/showthread.php?t=240331&page=3

Which had an official entry in the apple developer forums as well.

After all I’m a little desperate, that I’m not able to find the error.

Hi @torbenratzlaff,

This is odd. I assume you did what the user(s) in that other thread did? As in, logging completely and totally out of GC, quitting the app on your device, and then restarting? Perhaps even power off and on the device before that?

Brent

Hey @Brent,

I did that as well, except powering of the device.

I will check that.

Thanks so far.

Torben

Got that same problem here. I’m testing on iPhone 4S, iPhone 5c and iPad.

The first score was sent without problem, but the second (higher than the first one) was not sent.

Hi @Wiler Jr,

This may be a bug then. Can you trim this down to a very basic sample project and submit it to the bug reporting system?

http://developer.coronalabs.com/content/bug-submission

Thanks,

Brent

Sure, Brent.

This bug is almost blowing my mind.

This is the last feature I’m trying to fix before submitting my game to Apple. I hope it doesn’t last any longer… Please. haha

Some success there, @torbenratzlaff?

Unfortunetly not.

I now submitted my app without this feature and will implement it with an update.

I experienced the same as you, first score was tracked correctly, all following were ignored.

Hello,

Did anybody file a bug report on this? Engineering will really need that before they can prioritize an investigation and see what’s going on.

Thanks,

Brent

I’m waiting for a new reply from Tom. He tried one of the codes I tried using and said it was not working (regarding the submission of posterior highscores) because of a boolean condition I had been using. The last e-mail I sent him, I told him to remove the boolean conditions to see if it works, because I had no success here, with it or without.

Hi @Wiler Jr,

Can you post the bug case # here for my reference?

Sure, Brent. Case 38550.

So, Brent, is that a Corona bug or something wrong within the code I’m using?