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
...
Steps to reproduce
When doing channel subscription on receiving connection state as
connected
, the pusher SDK is giving errorExisting subscription to channel <channel name>
What must I do to reproduce the bug?
Steps:
inline
based auth method by providing secret key. Also set thepusher.connection.delegate
to receive updates.connect()
method on pusher SDK instance.changedConnectionState
delegate of pusher connection is called withnew
value ofConnectionState
asconnected
then can initiate channel subscription and along with event binding.subscribedToChannel
delegate method to get called and subsequentlyreceivedError
delegate call back execution that shows the errorExisting subscription to channel <channel name>
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 targetiOS 14.0
...