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

Getting Existing subscription to channel error #432

Open
parvez-keeptruckin opened this issue Jul 11, 2024 · 0 comments
Open

Getting Existing subscription to channel error #432

parvez-keeptruckin opened this issue Jul 11, 2024 · 0 comments

Comments

@parvez-keeptruckin
Copy link

parvez-keeptruckin commented Jul 11, 2024

Steps to reproduce

When doing channel subscription on receiving connection state as connected, the pusher SDK is giving error Existing subscription to channel <channel name>

What must I do to reproduce the bug?

Steps:

  • Initialise the Pusher SDK instance using inline based auth method by providing secret key. Also set the pusher.connection.delegate to receive updates.
  • Call connect() method on pusher SDK instance.
  • When changedConnectionState delegate of pusher connection is called with new value of ConnectionState as connected then can initiate channel subscription and along with event binding.
  • It is after last step execution that results in first subscribedToChannel delegate method to get called and subsequently receivedError delegate call back execution that shows the error Existing subscription to channel <channel name>
  • It is a behaviour on both simulator and real iOS Device.

Note: When I apply a delay of about 0.1 seconds for the code that subscribes to channel and event then above error does not happen

Expected behavior

The error should not happen as I made sure that channel subscription happened after successful pusher connection.
What did you expect to happen?

Actual behavior

Error occurring.
What actually happened? Submit stack traces or anything that you think would help.

Any improvements you suggest

The Pusher iOS SDK used v10.1.5 on minimum iOS deployment target iOS 14.0
...

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

1 participant