realtime data not working in iPhone
-
Hi Jared, just giving this a bump and wondering if you were able to replicate this issue
Fox
-
@mattfox said in realtime data not working in iPhone:
Hi Jared, just giving this a bump and wondering if you were able to replicate this issue
Fox
@CraigWeb has confirmed it for me. Its on my list to investigate.
-
I somehow think there may not be a 'heartbeat' to ensure the pointvalues websocket stays alive, what can I generate from the server without storing the value to make all clients who log in subscribe to this through mango and update it every 20-30 seconds to ensure the connection doesn't drop?
If I have enough systems updating at minute intervals, they all cause the timeout to be pushed back. Problem is a lot of my other sensors update at 5-15 minute intervals.
Any further suggestions are welcome. -
@mattfox said in realtime data not working in iPhone:
I somehow think there may not be a 'heartbeat' to ensure the pointvalues websocket stays alive
There is. It uses the WebSocket ping/pong mechanism. We send a ping packet every 10s by default, it is configurable via the
web.websocket.pingTimeoutMs
env property. If we do not receive a pong response the server closes the WebSocket. The client should re-open the WebSocket immediately if the tab is active. -
@MattFox I found a problem in the logic around the client (UI) reconnecting after a WebSocket closes. I think this is probably what you were seeing. I'll get a new UI module out soon, I also made some backend changes but I think the UI module fix will address your symptoms.
-
Excellent, nicely identified Jared!
@jared-wiltshire are these changes I can implement myself to save me having to do any major upgrades? -
@mattfox said in realtime data not working in iPhone:
are these changes I can implement myself to save me having to do any major upgrades?
No they are not. I will be releasing a UI module for 3.7.x
-
Darn it ok, I'll see about doing system upgrades early next year when the pressure is reduced.
-
-
@Jared-Wiltshire Has this been resolved? I am running v4.0.0 beta.14 and noticed that the real-time data in Watchlist and dashboard is not showing up on iPhone's Safari or Chrome.
-
This problem is not uncommon on iPhones, so here's what you should do. If you are still experiencing this problem, you need to reboot your device. If this does not help, then try to clean the file cache because this sometimes makes a difference. The third option involves the use of services from priorityunlock.com, which has a cool ability to unlock devices. Personally, really helped me figure out my iPhone so that you can have success in this case. Try all the options and tell me what worked for you.