Is there a way to reset Progress on my sandbox GameCenter account?

I have a GameCenter Sandbox-Account, checked my game, earned achievements, etc. Now I have made some changes and want to check the earnings again!

Should I create an entire new Sandbox account or is there a way to reset my account?

+6
source share
2 answers

The following code is from Apple Documentation .

- (void) resetAchievements { // Clear all locally saved achievement objects. achievementsDictionary = [[NSMutableDictionary alloc] init]; // Clear all progress saved on Game Center [GKAchievement resetAchievementsWithCompletionHandler:^(NSError *error) { if (error != nil) // handle errors }]; } 

Also check out the Apple GKTapper sample project.

+11
source
 // Reset all the achievements for local player - (void)resetAchievements { [GKAchievement resetAchievementsWithCompletionHandler: ^(NSError *error) { if (!error) { [storedAchievements release]; storedAchievements = [[NSMutableDictionary alloc] init]; // overwrite any previously stored file [self writeStoredAchievements]; } else { // Error clearing achievements. } }]; } 
0
source

Source: https://habr.com/ru/post/908694/


All Articles