I'm currently experiencing a bug due to which iPads randomly disconnect from the session, but only on one side.
At the beginning of the test
A ----> B
B ----> A
After requests that b send him some information
A ----> B
B AND
I am currently testing this program with one dominant iPad (browser) and 15 other iPads (advertisers).
I know that sometimes a call to sendData: often or with a lot of data can lead to a shutdown, I also know about 8 default max on MCSession. What am I, why am I creating a new session after 6 peers are found nearby.
I discovered one thing about this error. On the first test of the test, apparently, there were no disconnections, after stopping the test and the beginning of the second test shutdown, as a rule, 3-6 iPads. And I end the sessions correctly by stopping viewing and advertising. However, if I turn off / turn on all iPads Wi-Fi and Bluetooth, testing shows that several (maybe 1) are disconnected.
A strange problem that I seem to be unable to solve.
Zburm source
share