Open
Description
Steps to reproduce
- Setup a Pusher connection with autoReconnect enabled
- Set UIApplication's isIdleTimerDisabled to true to prevent locking of the device
- Disable internet connection
- Wait a couple of hours
Expected behavior
- The socket service tries to reconnect in background. As soon as the internet resumes the sockets connect and receives messages.
Actual behavior
There are a couple of variants:
- The connection disconnects completely and you need to relaunch the application.
- We built a more graceful reconnect ontop of the built in retries. This variant causes the crashes on 10.1.4 and same behavior as above on 10.1.5
Any improvements you suggest
At the moment we are experiencing thousands of crashes. I would love to remove our reconnection logic but the current autoReconnect logic is super unreliable. I can share crashlogs but since it contains product logic it needs to be shared in private.
...
Metadata
Metadata
Assignees
Labels
No labels