[iOS] Event handlers are not called after hot restart
Describe the bug Whenever I do a hot restart and then join any channel it stops handling events (joinChannelSuccess, userJoined etc). I Didn't pay much attention to this before until I got the same behavior in the release build uploaded to testflight. I don't know when exactly it happens in the release build, but it didn't work for hours and then started working again in the same build. I created an isolated example in a separate repo. Tried it with both temp token / generated access token.
To Reproduce Steps to reproduce the behavior:
- Start the example and click the "join channel" button on two phones
- Leave the channel on the second phone
- Do a hot restart
- Join the channel again and see that the first one sees joined user, but on the second phone doesn't handle events, and _joined is not true because joinChannelSuccess wasn't called.
Smartphone:
- Device: iPhone 8 Plus, iPhohe X
- OS: 15.5, 15.3.1
- Version 5.2.0
Additional context Logs from the phone where events were not called. I removed my appid and token from the iris log file agora-iris.log agorasdk.log
Thanks for the report, we will investigate and fix it.
I am experiencing the same issue
I am getting the same issue.
Thanks for the report, we will investigate and fix it.
did you fix it?
This fix has landed the main branch.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.