Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-13-2011, 12:50 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2010
Location: Cambridge, UK
Posts: 52
Werdan is on a distinguished road
Default Game Kit score submission error

I think it might be a bug with the library since everything used to work previously.

Apple’s Game Kit Programming Guide suggests the function to use to submit scores to Game Center, but it does not work for some reason. When Wi-Fi is turned off but user is authenticated it behaves as if the score was sent, however, it obviously isn’t…


Code:
- (VOID) reportScore: (int64_t) score forCategory: (NSSTRING*) category
{
GKScore *scoreReporter = [[[GKScore alloc] initWithCategory:category] autorelease];
scoreReporter.value = score;

[scoreReporter reportScoreWithCompletionHandler:^(NSERROR *error) {
IF (error != NIL)
{
// handle the reporting error
}
}];
}
It used to work exactly as it should. However, I am now testing one of my apps to try to find out why there is a minor bug with the score submission and this function doesn’t function well.

When a user opens the game, logs in to Game Center and then closes it and turns the Wi-Fi off, then opens the game again – it authenticates him OK to the Game Center (since he did not log out). However, when calling the above mentioned function the error is not returned! It says that the score is submitted even though it obviously isn’t.

Did anyone else experience this problem with the score submission to Game Center?

I also have topic dedicated to this on my blog, please reply wherever you feel easier
Werdan is offline   Reply With Quote
Reply

Bookmarks

Tags
error, game kit, score

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 367
10 members and 357 guests
7twenty7, blueorb, dre, iAppDeveloper, iGamesDev, Mah6447, Morrisone, mottdog, sacha1996, Touchmint
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:36 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0