i use to check if a local player authenticated with Game Center with Block of code
if ([[GKLocalPlayer localPlayer] isAuthenticated])
{
NSLog(@"authenticated");
}
this code runs when i first login with GameCenter. When i kill my app and start again it returns NO (Player is not authenticated)
Do i have to login each time when i start the app?
Is there any other solution?
You have to authenticate localPlayer every time your app becomes active but the user only has to input his user/password info the first time. After that it “remembers” who the user is.
Note that the authentication method in iOS 5 is not the same as iOS 6.