Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6391983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:45:15+00:00 2026-05-25T03:45:15+00:00

So far I have had success in implementing Game Center for my app. Authorizing

  • 0

So far I have had success in implementing Game Center for my app. Authorizing players is OK, so is reporting Achievements.

My issue is when I wanted to test app behavior with my iPad in flight mode.

The player will not get authorized (as I expected, so no issue) with this code.

    GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer];
if ([localPlayer isAuthenticated] == YES){
    NSLog(@"The local player has already authenticated.");
    return;
} else {

    [localPlayer authenticateWithCompletionHandler:^(NSError *error) {
        if (error == nil){
            NSLog(@"Successfully authenticated the local player.");
            NSLog(@"Player Alias = %@", [localPlayer alias]);

        } else {
            NSLog(@"Failed to authenticate the player with error = %@", error);
                        }
    }];
}

But when I later on in a UIView check if the player is authorized (so I know if I shall enable my show achievement button) with this code [achievementButton setEnabled:[localPlayer isAuthenticated]];I always get a YES as long as a user was logged in to Game Center before entering Flight Mode.

It seems like even if there is no connection to Game Center servers a previous authorized player is still seen as authorized.

This leads to that my button is shown but of course Game Center reports that it can not connect.

So, what would be the best way to check that a true connection to Game Center is available?

Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:45:15+00:00Added an answer on May 25, 2026 at 3:45 am

    I don’t think there is an API to check that, but you can always make a call to one of the API that is going to return results, like getting leaderboards. It will fail if you’re not connected.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to integration testing, but have had great success so far buiding up
I have had zero success with in app purchase. I have submitted the free
I have had no luck with this task so far so grateful for any
So far I have been creating Web Portal but recently I had a request
I'm taking a course in computational complexity and have so far had an impression
I have tried several things so far, but I haven't had much luck yet.
Just getting started with jQuery, and I've had some success so far. I've created
I'm trying to learn more about 'ajax' and so far have had the most
So far, I've had great success using PyAMF to communicate between my Flex front-end
I have had great success with running perl on my jailbroken iPhone 4: http://coredev.nl/

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.