iOS Multipeer connectivity framework invitationHandler doesn't seem to accept?

后端 未结 4 462
囚心锁ツ
囚心锁ツ 2020-12-30 10:35

I\'m using the mutlipeer connectivity framework for the first time, and I want programmatic ( not with the assistant classes) control.

Everything is working exactly

4条回答
  •  孤独总比滥情好
    2020-12-30 11:17

    Another problem I found (also in other sample codes, i.e PeerKit) is that stopAdvertisingPeer right after invitationHandler(YES) is probably wrong. Because even you accept invitation there is no guarantee you will be connected. I think it is better to stopAdvertisingPeer only when is connected.

提交回复
热议问题