Forum Scripting PlayerIO.Authenticate problem

Post your problems and discussions relating to scripting in Unity here.

PlayerIO.Authenticate problem

Postby miseryfate » August 28th, 2016, 12:00 pm

Hello, guys!
Im started my own game with PlayerIO.
I did Authentication in Unity3d and its works fine when i ran it at PC.
But when i built my project for Android and trying to launch it on my Android device thats doesnt work.

Example of my script:
public void LoginIn() {
InfoPanel.SetActive(true);
infoText.text = "Connecting...";

PlayerIO.Authenticate(
"mygameIDhere",
"public",
new Dictionary<string, string> {
{"email", email.text},
{"password", password.text}
},
null,
delegate(Client client) {
infoText.text = "Connected!";
infoText.text = "Loading character...";
client.BigDB.Load("myTableNameHere", playerID, delegate(DatabaseObject result){
if (result == null) {
//Go To Character Creation
infoText.text = "Character not found!";
InfoPanel.SetActive(false);
SceneManager.LoadScene(1);
}
else {
//Load Character
infoText.text = "Character loaded!";
InfoPanel.SetActive(false);

SceneManager.LoadScene(2);
}
}, delegate(PlayerIOError error) {
infoText.text = "Error: " + error.Message;
infoButton.gameObject.SetActive(true);
}
);
},
delegate(PlayerIOError error) {
infoText.text = "Error: " + error.Message;
infoButton.gameObject.SetActive(true);
}
);
}

May be i need to Add some DLL's or different functions?
miseryfate
 
Posts: 1
Joined: August 21st, 2016, 11:46 pm

Re: PlayerIO.Authenticate problem

Postby ChristianD » August 31st, 2016, 5:11 am

Hi misery,

In what way does it not work for you? Are you getting any error messages?
Christian
ChristianD
.IO
 
Posts: 63
Joined: May 13th, 2016, 4:44 am


Return to Scripting



cron