Server disconnecting user issue

Started by
2 comments, last by sanman05 12 years, 4 months ago
I have set up a server where users can play my game against one another. The game lobby can be found at crapsbaseball.com/play/ you can log in with whatever username and password you would like.
The problem I am having is when testing the lobby out on my IPhone the server disconnects me as a user whenever the phone goes to a lock screen. Is there anyway to counteract this? Any tips would be greatly appreciated.
Advertisement
Are you sure the server disconnects you and this isn't the phone client doing something goofy?

Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]


Are you sure the server disconnects you and this isn't the phone client doing something goofy?



^-- this.


If you are programming for the iPhone (which I assume? unless you login in via safari) ..



A solution: toss this into the AppDelegate class:




UIApplication *myApp = [UIApplication sharedApplication];
myApp.idleTimerDisabled = YES;



it will prevent the screen lock from happening (automatically at least).
I should have worded it more accurately since it may be the phone client doing something goofy as you said to kick me out of the server. Any way to prevent this aside from the solution zern posted? Thank you btw Zern.

This topic is closed to new replies.

Advertisement