Multipeer Connectivity: Inviting peers not always works

Originator:nils.kuebler
Number:rdar://17637621 Date Originated:11-Jul-2014 11:44 AM
Status:Open Resolved:
Product:iOS SDK Product Version:
Classification: Reproducible:
 
Summary:
inviting a peer that got disconnected due to a connection problem will sometimes cause a bug, that any further invitation attempt will not succeed (the other peer's didReceiveInvitationFromPeer will not be cauled anymore)

Steps to Reproduce:
1. Open the attached XCode project and launch on two devices.
2. Wait until both devices show the state "Connected"
3. turn Wi-Fi / Bluetooth off on one of the devices
4. turn Wi-Fi on again
5a) wait until both devices show the state "Connected" => repeat from step 3 
5b) if 5a won't apply, look if the console of one of the devices shows the log message "Invitation not successful?" => Congratulations, you triggered the bug.


Expected Results:
The invitation should succeed and both devices should show the state "Connected" when the Wi-Fi connection is turned on

Actual Results:
One device shows the state "Inviting" while the other device shows the state "Disconnected", as it's not knowing that it has been invited.

Version:
iOS 7.1.2

Notes:
A workaround is to stop advertising and browsing, creating a new advertiser and browser instance and start them again, once any peer disconnects.

Configuration:
iPad 3, iPhone 5s

Attachments:
'MultipeerConnector.zip' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!