-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pusher not consistently reconnecting when app comes back into foreground #420
Comments
Looks similar to this Java client issue from a few years back: pusher/pusher-websocket-java#197 |
Any solution to this problem ?? |
We have made some changes that may help in this area, I will look into getting a new release made so you can upgrade. |
We just released version 10.1.5 - could you upgrade and let me know if this helps resolve the issue? |
@benw-pusher I updated to 10.1.5 but started seeing a handshake problem:
Just rolled back to 10.1.4 and will get back to you if I see this problem persisting in the older version, making this comment unrelated. EDIT: The problem is 10.1.5 specific. |
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
andreconnectAttemptsMax
settings on the PusherConnection object but am still seeing the same outcome....
The text was updated successfully, but these errors were encountered: