New framework introduced in iOS 7
1) MultipeerConnectivity.framework
This framework help to communicate nearby iOS devices using following infrastructure
a) wi-fi network
b) peer to peer wifi
3) bluetooth
This framework is used in two phases: the discovery phase, and the session phase.
App uses browser Object (MCNearbyServiceBrowser) to discover nearby peers.
The app also uses an advertiser object (described in MCNearbyServiceAdvertiser Class Reference) or an advertiser assistant object (described in MCAdvertiserAssistant Class Reference) to tell nearby peers that it is available so that apps on other nearby devices can invite it to a session.
After the user chooses which peers to add to a session, the app invites those peers to join the session. Apps running on the nearby devices can choose whether to accept or reject the invitation, and can ask their users for permission.
If the peer accepts the invitation, the browser establishes a connection with the advertiser and the session phase begins. In this phase, your app can perform direct communication to one or more peers within the session. The framework notifies your app through delegate callbacks when peers join the session and when they leave the session
0 Comment(s)