I am trying to create a room dynamically in smartfox using the CreateRoom function and although I can accomplish it in a web player project I cannot in a iPhone project. Is there a limitation? Thank you.
Hello!
As far as I know there shouldn’t be any problem, make sure you are sending the values from both programs (iPhone web) the same, and also make sure which port/protocol smartfox listens to and check if you can send data via that protocol/port on your iPhone.
Yeah - there is no syntactical difference between running SFS API on iPhone or web.
I can also confirm that it works (use it myself).
Can you connect and login? But not create a room? Or does nothing work?
/Thomas
Thank you for the replies. I can connect and login but I cannot create the room. I am using exactly the same code I used in the web player object. I can join a room that is already created.
What does it say on in the log when you try to create the room?
(Might have to implement the debug message callback to get it out)
And is it only on the device or also the editor?
/Thomas
Thank you for the reply. It happens in both the editor and iPhone. Currently I do not have the Mac since it is back at the office, in order to copy/paste the debug which I have enabled. I do remember that I had a message “User already logged in”. However, even after restarting the server I got this message. Moreover, I get this message in the web player as well but the room is created nonetheless.
Feel free to send me the log + a small reproducable test case (Unity project is fine). Then I can take a look at it and see if I can find a bug somewhere
My email is thomas and then a @fullcontrol.dk
/Thomas
Thank you again. Will send the moment I am back at the office. To tell you the truth I am puzzled by this small predicament but a solution is always around the corner ![]()