Skip to content

Pusher not consistently reconnecting when app comes back into foreground #420

Open
@sarya

Description

@sarya

Steps to reproduce

Open the app, put the app in the background (e.g. switch to another app or lock the sreen), return to the app. Sometimes Pusher will reconnect in this scenario, but eventually the app will come into the foreground and Pusher will not reconnect. The user will have to force quit/relaunch the app to restore the connection.

Expected behavior

Pusher reconnects/resubscribes to channels every time the app is moved from background to foreground.

Actual behavior

The app is brought back into the foreground but Pusher stays in the "disconnected" state (according to the debug console).

I have attempted to play around with the maxReconnectGapInSeconds and reconnectAttemptsMax settings on the PusherConnection object but am still seeing the same outcome.

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions