Sending and receiving data through the game center (GameKit)

I have a working and implemented Game Center matchmaker, and using the functionality of the Game Kit Bluetooth, I know that my multi-user code works. When you play over the Internet through the Game Center sandbox, it works when both devices are connected to Wi-Fi, but if it is turned on in 3G, it quickly stops sending and receiving data, and so the game stops. Does anyone have an idea why this is happening on earth?

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

EDIT2: I created a simple test program that doesn't allow me around 6000. http://dl.dropbox.com/u/2042276/Game%20Center%203G%20Test.zip (change package ID)

+6
source share
2 answers

I found the cause of the problem - although my packages were incredibly small, I sent them a lot. I fixed this by putting packages together and sending them as one big package.

+1
source

Perhaps a dumb idea, but you tried to restart iDevice and reset the network settings.

+1
source

Source: https://habr.com/ru/post/912139/


All Articles