You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Achievements are usually managed at the server side, but you can also unlock achievements offline.
Sign in to http://pankia.com, go to "Basic Information", download a file named PNOfflineSettings.plist by clicking "export to plist", and include the plist in "Resources" directory in your project.
Unlock achievements
To unlock an achievement, call +[Pankia unlockAchievement:].
-(void)unlockSomeAchievement:(id)sender
{
[Pankia unlockAchievement:@"10"]; // Unlock the achievement with ID of "10"
}
When an achievement is unlocked, a notification bar will show up at the top of the screen.
If you want to stop showing the notification bar, define -(BOOL)shouldShowNotification in your delegate.
- (BOOL)shouldShowNotification
{
returnNO; // don't show the notification bar
}