Skip to content
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

Duplicated subscription for channel #430

Open
mr-grey opened this issue May 22, 2024 · 1 comment
Open

Duplicated subscription for channel #430

mr-grey opened this issue May 22, 2024 · 1 comment

Comments

@mr-grey
Copy link

mr-grey commented May 22, 2024

We discovered in app logs, after application lost connection, after reconnect pusher automatically recover connection and make subscribe to channels.
After some reconnects and application return from background, the event from channel can be duplicated.

Steps to reproduce

  1. put network off \ on
  2. put app in background \ open from background

Expected behavior

no duplicated events

Actual behavior

duplicated events

Any improvements you suggest

verify subscribe to channel after reconnect.

...

Using library: Swift package
Pusherswift 10.1.4

@benw-pusher
Copy link

Is your code also creating a new connection / subscription when the network/app is restored?
The library will automatically reconnect to our service and subscribe to previous channels when network is restored so there is no need to manually take these actions.

Can you open the debug console and run the test? I'd be interested to see how many connections/subscriptions we see reported there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants