You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
App Freezing when internet is turned off but still device is connected to wi-fi network #89
Our app use-case contains where we are dispatching messages on Web socket every X seconds.
If we disconnect the app from internet (Using a mobile hotspot and turning off the internet source without turning off the mobile hotspot), then app is freezing after sometime.
Our observation from logs:
When internet connection is turned off, Websocket state is still being returned as Open, instead of Closed
So, the messages are still trying to be dispatched on Websocket and after sometime, the task at this line is causing app freeze -
Activity
talhaArthur commentedon Oct 24, 2023
I have published a pull request that fixes this exact issue. You can try that
FixedApplicationFreezeIssueOnInternetDisconnect #90