HTKapp Logo

Disconnections & resuming a game

In a multiplayer game over a local network, connection losses (device going to sleep, Wi-Fi signal loss) can happen. Play Guess and Reveal includes a robust system for automatic reconnection and for saving the game state.

Player side: Connection loss

If you lose your connection to the Host in the middle of a game, the app reacts as follows:

  1. The game screen automatically switches to a waiting screen showing "Connection Lost..." and "Reconnecting...".
  2. The app looks for the previously targeted host and tries to reconnect to it automatically.
  3. If the reconnection succeeds, you will return to your game screen, your current score, and the status of the ongoing Round.

Leaving the game for good

If you no longer want to play or the game is over, you can tap the Leave Game button from the reconnection screen. This action informs the Host of your permanent departure and cancels the automatic reconnection attempts.

Note: Your player ID is persistent on your device. So even after the app crashes, joining the same host again will let you recover your identity and your points (as long as you keep the same nickname).

Host side: Crash or interruption

The app saves the complete game state on the host side in real time (scores, configuration, Rounds, guessing options).

If the Host's app closes accidentally (crash, dead battery, etc.), it is possible to resume the session:

  1. Relaunch the Play Guess and Reveal app.
  2. If a previous session save is detected, the app will offer to Resume the game.
  3. Once confirmed, your network server is restarted with the exact configuration of the interrupted session.
  4. The game screen reloads and a notification message confirms: "Game resumed! Waiting for players...".
  5. On their side, the players will reconnect automatically thanks to their reconnection system, recovering their scores instantly.

Session cleanup

If the Host leaves the game "cleanly" (using the end game or close waiting room button), the saved state is deleted, and the game is permanently over for everyone.

Detecting inactive players

During the game, the Host continuously monitors the participants' connection through a heartbeat system (ping/pong):

  • If a player stops responding for a certain time (about 20 seconds), they are marked as inactive.
  • A warning message is shown on the Host's screen to alert them that the player in question is unavailable.
  • The inactive player will automatically rejoin the game and be removed from the inactive list as soon as their connection is restored.