Chat between players in the game center turn-based match

I am trying to create a turn-based game using Game Center. I wanted to know whether it is possible to allow players in a match to communicate with each other (voice or text).

I looked at it a bit and it seems that this is possible through a regular game, but not based on rotation.

If itโ€™s not possible, what are the solutions or ways to allow this type of chat?

+4
source share
1 answer

Yes, text chat can be used as follows: Without completing the rotation, update the matchData object to GKTurnBasedMatch . Updated NSData will be provided to all players who open your application and are participants in the game. Thus, your matchData object matchData have to carry both the state of the game and the state of the chat. Unfortunately, I donโ€™t see how you can run custom notifications or the application icon for new chats without having to end the player each time.

0
source

All Articles