FlowFuse / FlowFuse/node-red-dashboard

[Regression] [PWA?] Widgets not receiving messages after sleep on Android

Open
#1,251 5 comments 0 reactions 0 assignees View on GitHub
needs-triage type:bug
Dominant language
HTML
Stars
355
Forks
82
Avg merge
4d 23h
Merged PRs (30d)
24

Description

### Current Behavior

There has been a change in behaviour of some sort recently, I think probably with the release of 1.15.0. Now, occasionally, on Android if the dashboard is left open and the device left alone for several hours, then on waking the device up the widgets no longer receive updates.

On waking there is no connection failed/recovered popup seen.
Navigation operates normally but widgets are never updated and the widgets apparently do not send messages back to node-red.

I managed to repeat it with a debug build of one of my widgets, and using the remote monitor in Chrome, can see that when a page is opened `mounted` is called and the widget receives its `props` message. On widget-load is never called though, and it receives no further messages. Note that this is not a recurrence of #444 which was triggered by a failure to reconnect after a network failure.

To recover it is necessary to force a page refresh.

### Expected Behavior

_No response_

### Steps To Reproduce

_No response_

### Environment

- Dashboard version: 1.15.0
- Node-RED version: 4.0.2
- Node.js version: 20
- npm version:
- Platform/OS: Android
- Browser: Edge

### Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.