I'm working on a project that uses MC framework as a communication channel, and after some tests I have the perception that this channel is somehow unstable to rely on.
I've been following Apple's documentations and videos in order to use the framework properly, but happens that:
- peers get disconnected kinda' often after paired, and even more ofter if I pair more than one peer.
- some data packages have mixed data
Is there any kind of recommendation to work with the framework? i.e:
- Specific project settings? (i.e: is there something in the capabilities section that needs to be enabled?)
- Multithreading restrictions? (i.e: always call mc methods from the same thread)
- Restrictions in terms of the amount of data to be sent?
I found this link that mentions something about the framework not performing ok under stress. That's the kind of advice I'm looking for :).
For the record:
- I'm using an implementation based on this post since Apple's project is not working for me.
- I'm using only one
MCSession
for all peers I try to pair with - Encryption preference is set to
MCEncryptionNone
- Using
sendData:
andsendResourceAtURL:
to communicate with peers.