"Device has lost communication" messages - iPad

  • allonis@bendavies.eu
  • Topic Author
  • Offline
  • User
  • User
More
1 year 6 months ago - 1 year 6 months ago #3971 by allonis@bendavies.eu
"Device has lost communication" messages - iPad was created by allonis@bendavies.eu
Hello,

I am using myServer 6 with my own (simple) custom setup on an iPad.
myServer 6 was setup using the Allonis image on a Pi4.  I keep myServer and the drivers up-to-date (and am very grateful for the regular updates/ constant development).

The last couple of weeks, every time I wake the iPad up, I see a warning triangle with the text "This device has lost communication with the server  Please check your network connection"
This message appears for up to a few seconds every time the iPad has woken up with the Allonis page open.  It didn't used to do this.
There is no functionality missing when the iPad is woken up - the buttons on the pages seem to work immediately.

The iPad I'm using is (by necessity!) an old iPad Air 2 running the last version of iOS for that device - 15.8.3

Is it possible that this message could be turned off, or delayed from appearing in an update please?
Is this perhaps caused by updates to the Pi4? - I have kept this up-to-date too.

Many thanks for any help with this!
Ben
Last edit: 1 year 6 months ago by allonis@bendavies.eu. Reason: Clarifying message duration

Please Log in to join the conversation.

More
1 year 6 months ago #3972 by andrew
I'm guessing it's a feature that was added to the web client code in a recent myServer update. I'm seeing it too, and I've seen it (half off the screen) on the smartremote when the myServer application was actually offline. But what I think is happening to your iPad is what I'm seeing on my laptop if I leave the web dashboard open in the browser - when the device goes to sleep it shuts off the network. When it wakes up again you see that message until either the network is restored or until the myServer client code notices that the network has been restored. That's my guess anyway.

I'm sure someone from Allonis will be along to say what's actually going on.

Please Log in to join the conversation.

More
1 year 6 months ago #3974 by David Li
That feature was added not too long ago (months) really for our sports bar customers... It's to let you know that the connection from the iPad to the myServer is down. The client cannot get a websocket connection to myServer. The user interface that they are looking at / clicking on is cached in the browser and not live to myServer....so if you see this, check your network connection.

Please Log in to join the conversation.

  • allonis@bendavies.eu
  • Topic Author
  • Offline
  • User
  • User
More
1 year 6 months ago #3977 by allonis@bendavies.eu
Replied by allonis@bendavies.eu on topic "Device has lost communication" messages - iPad
Thanks David.
I figured this much - I get the importance of it to the sports bar customers - when they actually have a communication issue - but in a home cinema environment it's pretty intrusive if it's the first thing one's guests see when they switch on an iPad.
Is there any way to hide/ disable it - or could there be an option to only show it after x seconds?
Nothing has changed with my network here - it's purely the delay in an iPad connecting after being woken up...
Cheers
Ben

Please Log in to join the conversation.

More
1 year 6 months ago #3979 by andrew

Thanks David.
I figured this much - I get the importance of it to the sports bar customers - when they actually have a communication issue - but in a home cinema environment it's pretty intrusive if it's the first thing one's guests see when they switch on an iPad.
Is there any way to hide/ disable it - or could there be an option to only show it after x seconds?
Nothing has changed with my network here - it's purely the delay in an iPad connecting after being woken up...
Cheers
Ben
If you wanted to go back to how it was before (no offline warning) then you could edit the file \\your.host\myServer\wwwroot\dashboard\js\fxApp.js and comment out line 501 where it says "this.showOffline();". That would stop it showing the message. I imagine this change will get overwritten each time you update myServer as I assume it updates the dashboard template at the same time.
Code:
... 500         this._ws.onclose = () => { 501            //this.showOffline(); 502               this._ws = null; 503            this._wsTimer = setTimeout(() => {this.wsCheck();}, this.UPDATEFREQ); 504         }; ...

Obviously this sort of modification is a bad idea - it's up to you if you want to get rid of the message badly enough to do it.

Please Log in to join the conversation.

  • allonis@bendavies.eu
  • Topic Author
  • Offline
  • User
  • User
More
1 year 5 months ago #3990 by allonis@bendavies.eu
Replied by allonis@bendavies.eu on topic "Device has lost communication" messages - iPad
Many thanks for this Andrew - I'll give it a go :-)

Please Log in to join the conversation.

Time to create page: 0.190 seconds