I created a game that reuses real-time multiplayer mode. It was originally aimed at iOS 8 devices. Recently, after switching to iOS 9, Game Center caused a lot of problems. The main problem that I canโt solve is to invite a friend to multiplayer (for testing).
From IOS 8 to IOS 8. Autoresponder and friend invitations work But from IOS 9 to IOS 9. Autoresponders and friend invitations no longer work.
If any of you managed to get Game Center invitations to work on iOS 9. Please direct me on the right path.
What do I know now:
- This is a game center issue because I tested the problem in another application from scratch. This caused the same problem.
- I use accounts registered as internal testers in iTunes connect Testflight
- IOS 9 merges sandbox with production
- When I send invitations, it is not accepted on another device (iOS 9 only).
- Notification is enabled for both devices, and push notifications are enabled for the application
- Rebooting devices did not solve anything. I tested both iOS 9.0.0 and 9.0.1
- I know that 9.0.2 has problems loading the game center, which I would like to avoid at the moment
UPDATE - 9/10/15 After they disabled the sandbox for iOS 8. The auto-match started working between iOS8 and iOS9. But a friend still seems to be a problem. A friend also stopped working for me on iOS 8.
The Game Center callback seemed to run in a different thread and caused an 80% chance of a connection failure. The solution was to run the code in the main thread, and it was allowed. But the threading problem did not fix the friend's bit.
After trying to start the match with a friendโs request, he gives an error as follows:
Error Domain=GKErrorDomain Code=3 "The requested operation could not be completed due to an error communicating with the server." UserInfo={ GKServerStatusCode=5096, NSLocalizedDescription=The requested operation could not be completed due to an error communicating with the server., NSUnderlyingError=0x136e23230 { Error Domain=GKServerErrorDomain Code=5096 "Peer device (type: iPad) does not support a game compatible with: unknown:com.xxx.xxx:x:xx" UserInfo={ GKServerStatusCode=5096, NSLocalizedFailureReason=Peer device (type: iPad) does not support a game compatible with: unknown:com.xxx.xxx:1:xx } } }
source share