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 12-08-2010, 03:38 PM   #1 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 25
idanr84 is on a distinguished road
Default Game center error

Hi,

I'm trying to call the authentication method of game center, however no authentication screen comes up and the callback return with an error : "the requested operation has been canceled".
If I move the app to the background and log into the gamecenter application, then go back to my app, log out of game center, and they try to log in again, then the auth screen does come up for a couple time.
However, after a few times in a row if I press cancel every time within the auth screen, the same error returns. (again,without even showing the auth screen again)

The code :

PHP Code:
[[GKLocalPlayer localPlayerauthenticateWithCompletionHandler:^(NSError *error)
     {
        
NSDictionary *userInfo nil;
        if (
error == nil) {

            
NSLog(@"Game Center successfully authenticated");
        }
        else {
            
userInfo = [NSDictionary dictionaryWithObject:error forKey:@"NSError"];
        }
        [[
NSNotificationCenter defaultCenterpostNotificationName:Notification
                                                            object
:self
                                                          userInfo
:userInfo];

    }]; 

Any idea what can cause this issue ?
idanr84 is offline   Reply With Quote
Old 12-09-2010, 01:56 PM   #2 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 1
JJmann is on a distinguished road
Default Same problem

I'm getting the same problem with the authentication screen coming up. I believe it has something do to with IOS 4.2. If I deploy my app to the simulator running 4.1 it works correctly.

Last edited by JJmann; 12-09-2010 at 01:56 PM. Reason: grammer
JJmann is offline   Reply With Quote
Old 12-27-2010, 02:11 AM   #3 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 25
idanr84 is on a distinguished road
Default

It turns out that is apple undocumented bahaviour.

After 3 times a user press cancel in a row, he has to go to the Game Center app and connect from there.

Go Figure.
idanr84 is offline   Reply With Quote
Reply

Bookmarks

Tags
cocoa-touch, gamecenter, iphone

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: 388
7 members and 381 guests
chemistry, daudrizek, HemiMG, jeroenkeij, whitey99
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,665
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daudrizek
Powered by vBadvanced CMPS v3.1.0

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