Closed sarbogast closed 10 months ago
Thanks for reporting ! It seems that broadcast.stop()
is called somewhere. We need to figure out where and why.
EDIT : Seems to be a problem with AutoStopBonsoirAction
.
It's clearly a problem with AutoStopBonsoirAction
. Using connectivity_plus
on Darwin, the first result is wifi
and the second is none
(that's why a stop()
is triggered). We'll get rid of this, as platforms should properly handle the actions interruption.
That's interesting. I used to use connectivity_plus to check for connectivity before even starting discovery or broadcasting, and I stopped using it because it was giving me inconsistency none
connectivity sometimes.
And apparently it's a known issue.
Describe the bug In my app, I start, stop and restart both broadcast and discovery. On Android, everything works smoothly as expected. On iOS, everything works as expected the first time, but after I stop and restart either broadcast or discovery, they are immediately stopped without me calling
stop()
on them.To Reproduce Steps to reproduce the behavior:
Expected behavior If you look at the logs, the first time you start broadcasting, you can see the following series of events:
And then when you click "Stop broadcasting", you can see this event:
But then when you click "Broadcast" again, you can see the following:
Why does the
broadcastStopped
event happen?Smartphone (please complete the following information):
Additional context Note that the same thing happens for discovery. But it doesn't happen on Android, neither for broadcast, nor for discovery.