Jump to content
  • Advertisement
Sign in to follow this  
sanman05

Server disconnecting user issue

This topic is 2570 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement

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).

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!