Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending And Receiving Data Via Game Center (GameKit) Over 3G Stops Working

I have a Game Center matchmaker working and implemented, and by using Game Kit's Bluetooth functionality I know that my multiplayer code works. When playing over the internet through the Game Center sandbox, it works when both devices are on WiFi, but if one is on 3G it quickly stops sending and receiving data, and so the game grinds to a halt. Does anyone have an idea why on earth this is happening?

EDIT:
After further debugging, the problem is that data is just not received on the 3G device after a certain point. Any ideas?

EDIT2: I have created a simple test program that fails around 6,000 for me. http://dl.dropbox.com/u/2042276/Game%20Center%203G%20Test.zip (change the bundle ID)

like image 481
jrtc27 Avatar asked Mar 31 '12 20:03

jrtc27


2 Answers

Silly idea probably, but have you tried rebooting your iDevice and resetting your network settings.

like image 158
Sam Avatar answered Sep 23 '22 16:09

Sam


I found the cause of the problem - although my packets were incredibly small, I was sending lots of them. I fixed it by lumping packets together and sending them as one big packet.

like image 30
jrtc27 Avatar answered Sep 20 '22 16:09

jrtc27