wtsoi
started a topic on Sun, 12 April 2015 at 11:23 AM
Hello,
I am having trouble figuring out what is wrong with logging in.
I haven't changed the login code, but it has stopped working on my iPhone,
The call back calls OnPlayFabError, with the error code "Success" when i try logging in on the phone, but its working fine from the PC.
The only recent changes I've done recently that might be related is:
Updated the project to use Unity5,
Updated iPhone to IOS 8,3
Updated mac, to Yosemite: Xcode 6.3
Many Thanks in advance,
Will
Login code:
public void Start(){
LoginWithIOSDeviceIDRequest request = new LoginWithIOSDeviceIDRequest();
request.TitleId = PlayFabData.TitleId;
request.DeviceId = SystemInfo.deviceUniqueIdentifier;
request.CreateAccount = true;
log.Add ("trying to login!");
PlayFabClientAPI.LoginWithIOSDeviceID(request,OnIOSDeviceIDLoginResult,OnPlayFabError);
}
public void OnIOSDeviceIDLoginResult(LoginResult result ) {
Debug.Log ("Loged in sucuessful with session ticket of: " + result.SessionTicket);
log.Add ("Loged in sucuessful with session ticket of: " + result.SessionTicket);
}
void OnPlayFabError(PlayFabError error) {
Debug.Log ("Got an error: " + error.Error);
log.Add ("error: " + error.Error);
}