How you get rid of "We are having trouble communicating with the server. Please wait a moment while we attempt to reconnect."

i faced the same issue with 2021r1
but there was also updates at android phone in the meantime.

Ignore, added wrong code …

Hello, I keep trying to find a solution to the disconnection by leaving the browser on the mobile, what I notice is that if I return the disconnection message does not appear right away and if in those seconds I make a “request” for data it works fine and then yes I get the poster, doubt? so he hadn’t actually been disconnected yet ?!
@Greg_O_Lone
have you found any solution for that issue?

Right, so on mobile, the JavaScript engine pauses when the browser app is sent to the background. When you come back, it takes a moment for JavaScript to restart but all of the timers that keep track of the connections have to fire again to get a bead on when the last communication from the server was. If you take an action I the app, it will appear to work on the client, but the server connection is most likely gone already.