Search code examples
androidmultiplayergoogle-play-games

Is it possible to reconnect to the room?


Currently once the client has been interrupted by phone calls or home button has been pressed by the user, the client will be disconnected.

p.s. I am implementing google play game service real time multiplayer in a real time but turn based game, for example, pokers, worms. These are real time games but did not need the players response or inside in the whole game because it is turn-based. The turn-based api does not suit this situation since the same reason said before.

Is there any way to let the player reconnect to the room which has not been over yet after being interrupted?


Solution

  • If you are using Google Play Services, it is NOT possible for a player to re-enter a room after being disconnected.

    From https://developers.google.com/games/services/common/concepts/realtimeMultiplayer#4_participant_connection_phase:

    1. Gameplay phase

    Once the required number of participants for a game have been connected, your app can start a gameplay session. After all participants have joined a game and the room is "full", players can leave your game, but no other players can join; not even to fill a spot that another player has vacated.