Im creating P2P
chat iOS application (swift).
I want to save the peer obj which have connected once to userDefault
and connect without inviting when connecting the peer next time.
I think using the func
session.connectPeer(peerID: MCPeerID, withNearbyConnectionData: NSData)
is solve my requirement, however I cant understand how to use this method, especially withNearbyConnectionData
arg.