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.
Server disconnecting user issue
Are you sure the server disconnects you and this isn't the phone client doing something goofy?
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).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement