lichess-org / mobile

Lichess mobile app v2
GNU General Public License v3.0
1.1k stars 151 forks source link

Stuck state when connection lost #793

Open cavollopollo opened 5 days ago

cavollopollo commented 5 days ago

What is the problem?

After losing connection and coming back, the app doesn’t update the game state and there is no way to leave the game, forcing the user to restart the application

Steps to reproduce the bug

In the new Beta App, I was playing a match, I lost connection for about 2 minutes.

After the connection was back, and losing the game for disconnection, the application did not update the game and thought its still going on. Therefore there was no way to exit the game screen, leaving the user stuck in the app.

A hook on connection re-established to update the game state is probably required, or more simply just a retry policy in the match state when the connection is lost.

A separate, larger proposal is to include more navigation options in the game screen, to go back to the main page.

What did you expect to happen?

The app should realize the game was over / lost, and allow the user to go back to the main menu or start a new match

What happened instead?

The app didn’t realize the game was over, being stuck forever waiting for a player to make a move and there was no navigation to go back

Device Info

iPhone 14 Pro

Operating System Version

Latest ios

Additional information

No response

ijm8710 commented 5 days ago

Saw the same