Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page not updating when left in background on Android #444

Open
colinl opened this issue Dec 16, 2023 · 2 comments
Open

Page not updating when left in background on Android #444

colinl opened this issue Dec 16, 2023 · 2 comments
Assignees
Labels
bug Something isn't working size:M - 3 Sizing estimation point

Comments

@colinl
Copy link

colinl commented Dec 16, 2023

To see the problem, open a dashboard page in Chrome on Android and open another app or apps, so that the dashboard page goes into the background. Leave it there for some time. Using another client machine, change the state of a widget, then on the android device switch back to the page left in the background. When I do this the widget state on the Android page stays at what it was previously, rather than showing the current data. Further changes from the other client are reflected. This is a serious issue. I suspect the same thing will happen if the page is left in the foreground but the device is left untouched so that the screen is blanked and is left in that state for some time, though I have not confirmed that.

If the same operation is performed with D1, then a few seconds after switching back to the page it can be seen to auto-refresh somehow, so that the data is updated. I don't know what mechanism is used to achieve that.

[Edit] I have not now confirmed that the same situation can arise if the page is left in the foreground for long enough, particularly on battery power (not charging). I suspect again that Android is trying to extend battery life by putting the page to sleep.

[Further edit] The situation can be triggered on a device connected to WiFi (whether Android or not) by switching off the WiFi for 20 seconds then restoring it.

@joepavitt joepavitt added bug Something isn't working size:M - 3 Sizing estimation point labels Dec 19, 2023
@colinl
Copy link
Author

colinl commented Feb 27, 2024

I think this is likely related to issue #620

@Soiski71
Copy link

Soiski71 commented Mar 3, 2024

Confirmed. For me it is the HTML page that stopps refreshing the HTML ( temp sensor codes ) from time to time in Android (always on) tablet.
Found out from Node Red server that in same time freeze happens the system log shows .

Pain as can not trust readings on screen with out confirmation of manual refresh of the page.

10:11:03 SAMONE Node-RED[887]: 3 Mar 10:11:03 - [info] [ui-base:D2] Disconnected bFaAKBFddJvzUORBAAal due to ping timeout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size:M - 3 Sizing estimation point
Projects
Status: Under Review
Development

No branches or pull requests

3 participants