Why aren't my GameKit (Game Center) achievements working? - ios

I'm trying to add achievements to my game, but first testing the waters with a test app to avoid making mistakes on iTunesConnect for a production app.
I've added all the libraries, set up leaderboards and an achievement on iTunesConnect, and even tested it to WORK with both scores and the achievement. So, I tried adding some more achievements. They all have unique string IDs and are all listed on iTunesConnect associated with the correct app. Through troubleshooting, I even went into the "current" app version (it's not released on the app store) and enabled all leaderboards and achievements successfully for the app version. However, the ONLY achievement that works is the original one. Additionally, I tried changing the description string and achievement points for the first achievement, but that hasn't updated either.
I've tested this through the game center app, checking to see what achievements and leaderboards are listed, enabling the game center view controller in app to check from there, and even used the following code to see what achievements are accessible
[GKAchievementDescription loadAchievementDescriptionsWithCompletionHandler:^(NSArray *descriptions, NSError *error) {
NSLog(#"achs: %#", descriptions);
}];
In every case, the only achievement that shows is the first one, with the FIRST version of the description string and the first number of achievement points.
In reporting scores, I've made sure to check the errors and they all come back as nil, regardless of what achievement they are submitting.
I'm suspecting there's some sort of caching function going on with iTunesConnect and it's not updating to the newest version of the achievements, but I really have no clue. Any ideas?
EDIT:
Two days after I started having the issue, I decided to fire up the app and see if I could deduce anything else... Suddenly, it all worked. Does it seriously take 1+ days to get achievements and scores to update and work?! That hardly seems conducive to a development environment...

Related

Game Center Leaderboard not appearing on production version of game?

My game went on the app store a few days ago and I cannot see my leaderboard at all. It just says "no data available"
However, when I build my game directly to my phone using an ad hoc profile I'm seeing my beta player's scores..
My leaderboard is in the not live status. I'm not sure if that matters or how to change that. I have other games with a "not live" leaderboard that are working on production..
Should I delete and remake the leaderboard now that my game is actually up on the app store?
I cleared my test data.. no luck.
Do I just need to wait? It's confusing.
I've called Apple support and theyre "working on it" but I feel like I'm stuck in a black hole now.. any way I can fix this myself?
I'm not sure if this section existed before. But I needed to explicitly add my created leaderboards to my release.

GameCenter Leaderboard will not update after release

GameCenter has been working fine before release when updating the high scores. Now, it has been over 24 hours and the highscores will not update at all. Instead, it only shows my score in "Today" and does not share it with anyone nor can I see anyone else's score although they have played the game.
Prior to the release it worked fine.
Here is what I have done,
Enabled GameCenter in Xcode
Created the Leaderboard in iTunes Connect
Enabled Leaderboard for App
Added correct methods to authenticate player & show leaderboard
Added correct methods to send scores
It all worked in the app prior to launch and updated scores to everyone. Now it just updates scores for that one person with their own score.
I have even deleted my own scores within iTunes Connect and it will not update on any devices and just keeps the score prior to deleting.
This is the Today section even after many people played
This is how All Time looks, it has not updated once since release
There are multiple questions like this but are not recent and deal with the sandbox (which was eliminated) and everything seems correct
Is there a crucial step I am missing? Are Apple's servers down? Does it just take very long for new apps to update leaderboards?
For anyone else who had this issue, I contacted iTunes Connect support and they went to their engineers. Apparently they were able to do something and have the scores sync correctly to iTunes connect.
It took 3 days but now there scores are all correct

Gamecenter leaderboard group is not in sync

I have a game that has been live on iTunes for about a month, and it has 16 leaderboards (all full with scores now).
I decided that I wanted to create a free version of the app, that shares the same leaderboards.
So, I changed the leaderboards the paid app uses over to a group, and updated all the leaderboard names with "grp.*". That change is now live, and everything is looking great, the leaderboards are still full with scores.
Now, yesterday, I released the free version of my app, also using the group leaderboards. It took all day for the app to finally show up in the appstore. This morning, when I downloaded the app, and looked at the leaderboards, they are empty, except for a few scores.
I know the code is pointing to the exact same leaderboard names, as the 2 versions of the game are built from the same exact code. I double checked itunes connect, and it shows the 2 apps are sharing the same group leaderboards.
So I'm not sure what is going on. Does it take a while for the scores to sync? Or is something really wrong?

GameCenter iTunesConnect - Leaderboard is not a member of a leaderboard set attached to version

Does anyone know what does this mean? I've tried searching everywhere but can't find a word on it.
Essentially I created a group for an app (and its deluxe counterpart), then created some leaderboards and added them to leaderboard sets. Then I tried adding the leaderboard sets and checking their constituent leaderboards.
Unchecking all the leaderboards doesn't fix this and toggling off Game Center doesn't help either.
I can no longer save changes to the app and Apple hasn't gotten back to me (2 weeks). I do have a default leaderboard selected.
I had a similar issue and it's just been resolved by iTunes engineers. I'd recommend checking if it works on your end now too.
From how I saw itunesconnect behaves w.r.t. leaderboard groups, I have seen that if there is any game that has leaderboard sets, any leaderboards that you add further (to that game) must be added to one of those sets only.
It doesn't allow you to add a leaderboard (that's not part of any group) to the same game.
Perceived Rule: There is no place for standalone leaderboards once you create a set.
What might be happening in your case:
Since you have created a group for your group of games - probably your other app (game) is having some standalone leaderboards. Since you added them first, it allowed you to add them as standalone. After coming to second game, you created a set, and since all leaderboards (MUST) belong to the sets - and sets to the game group - this is iTunesConnect's way of complaining.
Solution:
Go to other game belonging to the same group (Group Reference Name) and delete those standalone groups, or maybe make them part of a set. Save. Then come back to this game and check those leaderboards again.
Maybe I am not right about your other game, but I am sure there are orphan leaderboards that are no part of any sets that's causing the problem.
The issue was indeed with iTunes and I had to wait a few weeks for them to resolve it. It seems this is pretty common so for anyone else with a similar problem in the future I would essentially assume it's iTunes' fault and get in touch with Apple. But don't expect it to be resolved quickly.

iOS Game Center not working now app is live

I've just released my app on the App store tonight (https://itunes.apple.com/us/app/bird-hunter/id829810807?ls=1&mt=8), it has a leaderboard that worked perfectly well in sandbox mode, but now shows up saying no items.
During the review process I was able to see another user on the leaderboard, presumable the person who tested the app. I have game center enabled in itunes connect.
Is this something that will take some time to kick in, or is there something else I have to do to make it work?
I'd not submitted the Leader Board for approval to Apple with the app. I ended up doing some bug fixes to the app and then submitting the Leader Board for approval with the bug fixes, and then everything worked.
It's kind of a shame though as I had a big spike of downloads on the first day, and downloads didn't pick up again until the leader board stuff worked. I kind of wonder if I'd have got a lot more downloads had this been working straight away.

Resources