Sunday, 15 July 2012

ios - Multipeer Connectivity Can Not Connect -



ios - Multipeer Connectivity Can Not Connect -

i trying connect iphone device , iphone simulator using multipeer connectivity framework.

so far, i've tried code in this tutorial, , this one too, haven't been able connect 2 devices successfully:

sometimes, 1 of devices not appear in other device's browser list (mcbrowserviewcontroller).

other times, 1 of devices appears twice or 3 times in other device's browser (this question's reply not solve issue). restarting/deleting app not prepare it, changing "service type" string does. somehow sessions "stay alive"?

if advertise using instance of mcadvertiserassistant, invitation dialog not shown on target device.

if, instead, utilize instance of mcnearbyserviceadvertiser plus alert view, invitations accepting them causes state hang in "connecting", , "done" button of browser never becomes enabled (this farthest have come).

i've read several questions/answers here, , still isn't clear if should utilize same or different sessions browsing/advertising, , lifetime said sessions should have.

note: real device running ios 8 beta.

ios multipeer-connectivity

No comments:

Post a Comment