Shelly fixes background read freezes by moving RN bridge reads to native paths

On 2026-11-28, Shelly's read_terminal_output, read_logs, and get_settings operations ran through the React Native bridge, which stopped when the Android app went to the background, causing reads to hang for up to 100 seconds. An interim improvement made requests return a immediate "bridge stopped" response in roughly 137–154 milliseconds instead of stalling. The permanent design assigns terminal output and logcat to direct native reads, while application logs and settings will use an HMAC-signed path issued by React Native. The article also outlines native integration considerations, including asynchronous calls, threading assumptions, and rebuild requirements. It further notes that AppState background detection must be distinguished from notification-drawer blur events.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in