After having logged my player into GameCenter and verifying that they are authenticated, I am trying to log that player into PlayFab using the iOS SDK's LoginWithGameCenter method.
[[GKLocalPlayer localPlayer] generateIdentityVerificationSignatureWithCompletionHandler:^ (NSURL * a_pPublicKeyUrl, NSData * a_pSignature, NSData * a_pSalt, uint64_t a_Timestamp, NSError * a_pError) { if (a_pError) { // ... Log Error return; } const char* pszGameCenterID = "<Player's GCID>" ClientLoginWithGameCenterRequest* login_request = [ClientLoginWithGameCenterRequest new]; login_request.PlayerId = [NSString stringWithUTF8String:pszGameCenterID]; login_request.CreateAccount = true; //creates a new account if no existing one login_request.PublicKeyUrl = a_pPublicKeyUrl.absoluteString; login_request.Salt = [[[NSString alloc] initWithData:a_pSalt encoding:NSASCIIStringEncoding] autorelease]; login_request.Signature = [[[NSString alloc] initWithData:a_pSignature encoding:NSASCIIStringEncoding] autorelease]; login_request.Timestamp = [NSString stringWithFormat:@"%lld", a_Timestamp]; [[PlayFabClientAPI GetInstance] LoginWithGameCenter:login_request success:^(ClientLoginResult* result, NSObject* userData) { // ... Handle Success } failure:^(PlayFabError *error, NSObject *userData) { // ... Handle Error } withUserData:nil]; }];
Every time I attempt to log in, I get a 500 error with error code 1110 marked as an InternalServerError with "An unexpected error occured while processing the request." for the error message.
I'm wondering if anyone else is having this issue or knows a solution? Perhaps we're missing something in our configuration?