I'm developing a unity app for iOS using app warp. Ive noticed that if you soft close the app (put it in the background), wait for longer than the recovery allowance, and then reopen the app, then I get the following error if I try to send a chat immediately on resuming the app:
Socekt Excption: Invalid arguments from sendPrivateChat.
Then shortly after I get error code 9 from onConnectDone. I assume this is because appwarp closes the connection if you're in background for longer than the recovery period. To remedy this, I do a RecoverConnection and then send the private chat again.
This works, and I also receive the private chat reply from the other player (one weird thing is that I get two responses to onConnectDone after calling RecoverConnection, one with error code 0, and one with error code 1).
However, if I then try to send a public chat after doing what I described above, I get error code 3 (resource moved) in response to the attempt to get the public chat. Is there a different process I should follow to recover the app after having it backgrounded for a long time in ios? Do i need to do something different after recover connection to be able to send public chats?
closed with the note:
Solved