mercredi 2 juillet 2014

Multipeer Connectivity iOS 7 browser: lostPeer: delay after peer disconnect


Vote count:

0




I use Multipeer Connectivity Framework for my last project and it seems that there are a lot of bugs and inconsistent logic that does not follow Apple Documentation.


I have Host and Participants and custom Browser Screen for adding participants (conforming <MCNearbyServiceBrowserDelegate>)


I would like to show adequate information to user about advertised nearby peers.


The problem is when participant device stop advertise itself ( called [self.advertiser stopAdvertisingPeer];) host need some time to handle this change (5-20 seconds).


It is described in Apple Documentation about method:


- (void)browser:(MCNearbyServiceBrowser *)browser lostPeer:(MCPeerID *)peerID



Important: Because there is a delay between when a host leaves a network and when the underlying Bonjour layer detects that it has left, the fact that your app has not yet received a disappearance callback does not guarantee that it can communicate with the peer successfully.



Have you found some workaround about this delay problem?


Thanks in advance and will appreciate your answers :)



asked 48 secs ago






Aucun commentaire:

Enregistrer un commentaire