ios - Game Center leaderboard shows one result -



ios - Game Center leaderboard shows one result -

i've sent scores leaderboard different test accounts when seek see leaderboard can see score business relationship i'm logged in. used code send scores :

- (void)reportscore:(int64_t)score forleaderboardid:(nsstring*)identifier { gkscore *scorereporter = [[gkscore alloc] initwithleaderboardidentifier: @"ghs"]; scorereporter.value = score; scorereporter.context = 0; [gkscore reportscores:@[scorereporter] withcompletionhandler:^(nserror *error) { if (error == nil) { nslog(@"score reported successfully!"); } else { nslog(@"unable study score!"); } }]; }

this code i'm using show leaderboard:

- (void)showleaderboardonviewcontroller:(uiviewcontroller*)viewcontroller { gkgamecenterviewcontroller *gamecentercontroller = [[gkgamecenterviewcontroller alloc] init]; if (gamecentercontroller != nil) { gamecentercontroller.gamecenterdelegate = self; gamecentercontroller.viewstate = gkgamecenterviewcontrollerstateleaderboards; gamecentercontroller.leaderboardidentifier = _leaderboardidentifier; [viewcontroller presentviewcontroller: gamecentercontroller animated: yes completion:nil]; } }

maybe it's because sandboxed , stuff? normal maybe? thanks

i've had issue before , after much searching seems error sandbox accounts. split table highest of time, highest today , highest friend , in each case other higher scores other sandbox accounts ignored. when added 1 of accounts friend, started sharing scores fine.

i used code more or less identical own , submitted app store accepted, works fine live accounts.

ios objective-c sprite-kit game-center game-center-leaderboard

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -