I have integrated Game Center in my project, i can log in to game center and can open leadersboard but its not showing any scores . i have tried to submit score in leaderboard and it returns success but its not showing in there.
Submitting score
-(void)submitScore
{
GKScore *myScoreValue = [[[GKScore alloc] initWithCategory:@"something"] autorelease];
myScoreValue.value = [prefs integerForKey:@"total"];
[myScoreValue reportScoreWithCompletionHandler:^(NSError *error){
if(error != nil){
NSLog(@"Score Submission Failed");
} else {
NSLog(@"Score Submitted");
}
}];
}
I have searched on this issue and i found this and this I have tried both but not working.
I am getting this on starting app.
<Info>: 16:39:10.550238 com.apple.AVConference: GKSConnSettings: set server: {
"gk-cdx" = "17.173.254.218:4398";
"gk-commnat-cohort" = "17.173.254.220:16386";
"gk-commnat-main0" = "17.173.254.219:16384";
"gk-commnat-main1" = "17.173.254.219:16385";
}
Is there anything wrong with me code?