Agora-Flutter-SDK icon indicating copy to clipboard operation
Agora-Flutter-SDK copied to clipboard

[iOS] Event handlers are not called after hot restart

Open AndriiVivcharenko opened this issue 3 years ago • 3 comments

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:

  1. Start the example and click the "join channel" button on two phones
  2. Leave the channel on the second phone
  3. Do a hot restart
  4. 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

AndriiVivcharenko avatar Jul 11 '22 10:07 AndriiVivcharenko

Thanks for the report, we will investigate and fix it.

littleGnAl avatar Jul 12 '22 06:07 littleGnAl

I am experiencing the same issue

Aanu1995 avatar Jul 21 '22 12:07 Aanu1995

I am getting the same issue.

yuki384 avatar Aug 19 '22 07:08 yuki384

Thanks for the report, we will investigate and fix it.

did you fix it?

mdusaama0 avatar Dec 22 '22 12:12 mdusaama0

This fix has landed the main branch.

littleGnAl avatar Feb 17 '23 08:02 littleGnAl

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.

github-actions[bot] avatar Apr 28 '23 08:04 github-actions[bot]