Forum General iOS QuickConnect fails with General Error, Android is fine

Any issues or discussions relating to Unity development are welcome here.

iOS QuickConnect fails with General Error, Android is fine

Postby hersee » January 28th, 2014, 12:57 am

We have our game running in the editor and on android. However when I try to run the game on an iOS device I get a General error returned from PlayerIO.QuickConnect.SimpleConnect with no extra information.

I am a little stuck as to what to check next any ideas what to check? We're using Unity 4.3.3f1 and just the BigDB and QuickConnect functionality of PlayerIO.

Code: Select all
   public void Connect()
   {   
      PlayerIO.QuickConnect.SimpleConnect (PFPlayerIO.gameID, username.Field.CurrentText, password.Field.CurrentText, delegate(Client client)
         {
            PFPlayerIO.client = client;
         }
         ,ErrorMessage);
   }

   public void ErrorMessage(PlayerIOError error)
   {      
      Debug.Log (error.ToString ());
      Debug.Log (error.ErrorCode);
      Debug.Log (error.Message);
      Debug.Log (error.HelpLink);
      Debug.Log (error.InnerException);
      Debug.Log (error.Source);
   }


results in the following:

Code: Select all
(Filename: /Users/Andy/Plastic/PS/Unity/Assets/Scripts/FEUsername.cs Line: 77)

PlayerIOClient.PlayerIOError: GeneralError;
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
FEUsername:ErrorMessage(PlayerIOError) (at /Users/Andy/Plastic/PS/Unity/Assets/Scripts/FEUsername.cs:112)
PlayerIOClient.Internal.identifier415:MoveNext()

(Filename: /Users/Andy/Plastic/PS/Unity/Assets/Scripts/FEUsername.cs Line: 112)

GeneralError
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
FEUsername:ErrorMessage(PlayerIOError) (at /Users/Andy/Plastic/PS/Unity/Assets/Scripts/FEUsername.cs:113)
PlayerIOClient.Internal.identifier415:MoveNext()

(Filename: /Users/Andy/Plastic/PS/Unity/Assets/Scripts/FEUsername.cs Line: 113)

GeneralError;
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
FEUsername:ErrorMessage(PlayerIOError) (at /Users/Andy/Plastic/PS/Unity/Assets/Scripts/FEUsername.cs:114)
PlayerIOClient.Internal.identifier415:MoveNext()

(Filename: /Users/Andy/Plastic/PS/Unity/Assets/Scripts/FEUsername.cs Line: 114)

Null
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
FEUsername:ErrorMessage(PlayerIOError) (at /Users/Andy/Plastic/PS/Unity/Assets/Scripts/FEUsername.cs:115)
PlayerIOClient.Internal.identifier415:MoveNext()

(Filename: /Users/Andy/Plastic/PS/Unity/Assets/Scripts/FEUsername.cs Line: 115)

Null
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
FEUsername:ErrorMessage(PlayerIOError) (at /Users/Andy/Plastic/PS/Unity/Assets/Scripts/FEUsername.cs:116)
PlayerIOClient.Internal.identifier415:MoveNext()

(Filename: /Users/Andy/Plastic/PS/Unity/Assets/Scripts/FEUsername.cs Line: 116)

Null
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
FEUsername:ErrorMessage(PlayerIOError) (at /Users/Andy/Plastic/PS/Unity/Assets/Scripts/FEUsername.cs:117)
PlayerIOClient.Internal.identifier415:MoveNext()

(Filename: /Users/Andy/Plastic/PS/Unity/Assets/Scripts/FEUsername.cs Line: 117)
hersee
 
Posts: 7
Joined: October 23rd, 2013, 11:01 pm

Re: iOS QuickConnect fails with General Error, Android is fi

Postby hersee » January 28th, 2014, 1:09 am

Further to this the error object returned by PlayerIO.QuickConnect.SimpleRegister in the below is null on iOS.

Code: Select all
   public void OnOk()
   {
      if (createUser)
      {
         // Well let's try to create the user and let PlayerIO do all the error reporting....
         PlayerIO.QuickConnect.SimpleRegister(PFPlayerIO.gameID, username.Field.CurrentText, password.Field.CurrentText, email.Field.CurrentText, null, null, null, null, delegate(Client client)
         {
            // We are logged in
            PFPlayerIO.client = client;
            
            PFPlayerIO.RegisterPlayer(email.Field.CurrentText, "", username.Field.CurrentText, delegate(string error)
            {
               if (error.Length > 0)
               {
                  UIQuestion.Instance.Ask(error, Language.Get("ButtonOk"), null, null, true, Language.Get("TitleError"));
                  client = null;
               }
               else
               {
                  // Success
                  PFPlayerIO.RememberMe(username.Field.CurrentText, password.Field.CurrentText);
                  UtilsHistory.Instance.ResetAndTransitionTo("Start/Main");
               }
            });
         }
         ,delegate(PlayerIORegistrationError error)
         {
            if (error == null)
            {
               Debug.Log ("Error = null!"); // <---- This fires!
            }
            else
            {
               Debug.Log (error.ToString ());
               // Failed so set up error messages
               username.Error (error.UsernameError);
               password.Error (error.PasswordError);
               email.Error (error.EmailError);
            }
         });
      }
hersee
 
Posts: 7
Joined: October 23rd, 2013, 11:01 pm


Return to General



cron