iDevGames Forums
gamecenter hidden achievement is visible - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: gamecenter hidden achievement is visible (/thread-10412.html)



gamecenter hidden achievement is visible - sefiroths - Nov 7, 2012 12:20 PM

i have 4 achievement in gamecenter, 2 hidden (i checked hidden in itunesconnect), but in simulator and in device they are visible... im i missing something?
and this code says always "visible"
Code:
if(achievement!= NULL)
        {
            [achievement reportAchievementWithCompletionHandler: ^(NSError *error){
                if(error != nil){
                    NSLog(@"Achievement failed %@",achievementIdentifier);
                } else {
                    NSLog(@"Achievement Success %@",achievementIdentifier);
                    NSLog(@"%@",achievement.hidden?@"hide":@"visible");
                }
                
            }];
        }
in apple dev center i have seen:
When you report progress to Game Center, two things happen:

If the achievement was previously hidden, it is revealed to the player. The achievement is revealed even if your player has made no actual progress on the achievement (a percentage of 0.0).
so...at the end of the game i report achievement to gamecenter, then the player clicks on achievement button, and he could see the hidden achievement even if it is not reached...???
how can i mantain hidden this achievement?