Skip to content

App Freezing when internet is turned off but still device is connected to wi-fi network #89

Description

@tejasriram13

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 -

Please let me know how to overcome this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions