Only window of achievements, no leaderboards

I can not show the leaderboard window. Only the achievement window is showing.


GKGameCenterViewController *gameCenterController = [[GKGameCenterViewController alloc] init];

if (gameCenterController != nil)

{

gameCenterController.gameCenterDelegate = self;

//not available for tvOS gameCenterController.viewState=GKGameCenterViewControllerStateLeaderboards;

[self presentViewController: gameCenterController animated: YES completion:nil];

}

Any advices? Thank you!

Answered by Brian Greenstone in 74463022

Man, I really wish I could post screenshots like I could with the old Developer Forum...


Are your Leaderboard icons in the images.xcassets root level? Not in the Brand Assets, right? Also, in the Info pane on the right there is a Layers list. Be sure that list matches what you gave it. I've got Leaderboad icons with both 3 and 2 layers, and they seem to be working.


-Brian

Thank you, but my error message is that "No Content", which is displayed above the "Leaderboard" setion. Under the Leaderboard setion are Front section, Middle section and Back section. When compiling the project, I got the compilation error:


"Resources/Images.xcassets: The image stack "Poster" must have at least 2 layers with applicable content. Although it has 3 layers, none have applicable content."


Need further help. Please!


Thank you!

Accepted Answer

Man, I really wish I could post screenshots like I could with the old Developer Forum...


Are your Leaderboard icons in the images.xcassets root level? Not in the Brand Assets, right? Also, in the Info pane on the right there is a Layers list. Be sure that list matches what you gave it. I've got Leaderboad icons with both 3 and 2 layers, and they seem to be working.


-Brian

What do you see inside the Leaderboard area (section)? In my case, I see the text of "No Content".


There are four stacked rectangle areas arranged from top to down, named "Leaderboard", "Front", "Middle", "Back", respectively.

I can see png file names inside the areas of "Front", "Middle", "Back".

However, it is "No Content" inside the "Leaderboard" area.


Don't know how to provide content for the "Leaderboard" area.


Thank you again!

Hi

Now I am trying to set the Identifier string.

Suppose my leaderboard id identifier is "abc.scores.best", and my app identifier is "com.goog.app", how to fill the necessary fields?


Thank you!

Hmm... I don't think that's the proper methodology for the leaderboard string. If your app's ID is com.mycompany.myapp then your leaderboard ID should be com.mycompany.myapp.myleaderboard In which case, "com.mycompany.myapp.myleaderboard" is working for me here in all of my apps.


-Brian

Just log in to iTunes Connect and copy and paste your Leaderboard ID from the Game Center section related to your App

Thank you! I


I tried this method, but stilled failed. I pasted the leaderboard identifier to the that field, but not succeeded. The identifier is "grp.xyz.leaderboard.highscore", which is in an existing game. I also tried the iamge sizes of 659px by 371px, 602px by 339px, but both failed.


However, when tring the Dashboard image, it succeeded!

Hi I'm potting an existing game whose leaderboard identifier is grp.xyz.leaderboard.highscore, Thank you!

Is the app ID of the tvOS version the same as the iOS version? I think it has to be for this to work.


-Brian

Yes. Both are 1.0.

Very strange. The version # shouldn't matter (mine are all different), but the com.*** things are the same for both iOS and tvOS. In the Build Settings what did you set the "Leaderboard Identifier Prefix" to?

I tried many, including the app identifier, for the building setting! Furthermore, I believe this setting will be ignored as long as the Game Center identifier field is filled with the exact leaderboard identifier. You can help me confirm this at your side!

Solved with no result!


By creating a new leaderboard identifier at the iTunes Connect and pasting it to the "Game Center Leaderboard" field at the XCode, the leaderboard appears on the Television.

But if replacing it with an existing identifer, the leaderboard disappears!


It seems Apple has not get it ready for us.

Is the new leaderboard you created also a group leaderboard like your original? (grp.somename) I'm having similar trouble and the only thing I can identify where my situation might differ from those who have been successful is that my one and only leaderboard is a group leaderboard. If you think about it, the com.company.someapp.leaderboard naming scheme doesn't make much sense if the leaderboard is shared among multiple apps. I've tried all kinds of combinations with no results though. Even the original (pre-group) leaderboard ID, which was still working in code I built against the iOS 7 SDK, but which has long since been absorbed by the group leaderboard in iTunes Connect, does nothing.


The description of the build setting does suggest that it's ignored if the identifier field is populated in the asset catalog. I noticed that my default value for this setting was based on my product name, which can easily have no relation to your bundle ID.

For the grp. leaderboards I found that I had to remove the grp. prefix in order for it to work.


-Brian

Only window of achievements, no leaderboards
 
 
Q