Questions tagged [multipeer-connectivity]

The MultipeerConnectivity framework is an iOS 7 framework for connecting to nearby peers over Bluetooth, Wi-Fi, or P2P.

Introduced in iOS 7, MultipeerConnectivity is a framework for connecting to nearby peers over Bluetooth, Wi-Fi, or P2P, without distinction between the transport layer being used. Many devices can be connected using any of the available transport layers automatically.

486 questions
41
votes
5 answers

Why does my MCSession peer disconnect randomly?

Im using MCNearbyServiceBrowser and MCNearbyServiceAdvertiser to join two peers to a MCSession. I am able to send data between them using MCSession's sendData method. All seems to be working as expected until I randomly (and not due to any event I…
tillerstarr
  • 2,545
  • 1
  • 18
  • 35
35
votes
6 answers

Is iOS 7 Multipeer Connectivity compatible with Android Wi-Fi Direct?

I've been looking at iOS 7's new P2P networking framework, MultipeerConnectivity, and from the description, it seems to me that it uses a combination of some kind of Wi-Fi Direct technology and Bluetooth PANs. Is the Wi-Fi Direct technology in this…
Linuxios
  • 31,993
  • 12
  • 82
  • 110
30
votes
7 answers

Reconnecting to disconnected peers

I'm using the iOS 7 Multipeer framework in my app but I'm experiencing a problem with devices disconnecting. If I open the app in two devices: device A and device B the two devices connect to each other automatically. However, after several seconds…
James Andrews
  • 3,120
  • 3
  • 28
  • 42
26
votes
4 answers

Peer to peer android and iOS with Wifi direct (multipeer connectivity?)

Well I'm working on this app to send data between android and iOS and I got it to work between iOS devices with Apple's Multipeer Connectivity framework, but I am currently wondering how do you achieve it between both platforms? even if you are…
min
  • 3,560
  • 2
  • 24
  • 43
21
votes
4 answers

Use iPhone as a game controller in a tvOS app?

During the Apple TV announcement, the developers of Crossy Road demonstrated using an iPhone as a 2nd controller for an Apple tv game: http://www.macrumors.com/2015/09/09/cooperative-play-for-crossy-road/ My first thought was to implement this using…
AaronBaker
  • 963
  • 10
  • 13
21
votes
5 answers

Peer-to-peer network over wifi in iOS

I've been at this for a few days now, and can't seem to find a solution. I want to create a peer to peer network over wifi on iOS. All open source code seems to be supporting running a server or being a client, but there's no code built to support…
Andrew
  • 15,489
  • 25
  • 116
  • 200
15
votes
2 answers

Multipeer connectivity framework: Stability and Recommendations

I'm working on a project that uses MC framework as a communication channel, and after some tests I have the perception that this channel is somehow unstable to rely on. I've been following Apple's documentations and videos in order to use the…
Omer
  • 5,140
  • 8
  • 34
  • 59
14
votes
5 answers

Multipeer Connectivity Framework - Lost Peer stays in Session

I wonder if this Multipeer Connectivity framework is ready for use in the real world, given all the bugs that have been encountered by the community. I think I'm setting it up right, but all the other sample projects I've tried encounter similar…
Arjun Mehta
  • 2,281
  • 1
  • 20
  • 37
13
votes
4 answers

swift: nscoding decodeObject with nil all the time

I got the following codes on writing an object named Packet and send to the other side through Multipeer connectivity. However, I got the following error whenever it try to decode the encoded object. class Packet : NSObject, NSCoding { var…
user6539552
  • 1,179
  • 2
  • 12
  • 35
12
votes
1 answer

Multipeer Connectivity Error "Send BINDING_REQUEST failed" in iOS10

I'm seeing the following errors in my MPC app in iOS 10 and I'm looking for some help explaining them. After the peers are connected, several of the errors below pop up. The peers end up connecting, but it is slower than in iOS 9 (appears that the…
rswayz
  • 892
  • 2
  • 7
  • 20
12
votes
5 answers

swift 3.0 TViOS 10.0 MultipeerConnectivity works, but with errors

Using this code to setup Multipeer connectivity under TViOS 10.0. import UIKit import MultipeerConnectivity class MPCHandler: NSObject, MCSessionDelegate { var peerID: MCPeerID! var session: MCSession! var browser: MCBrowserViewController! var…
user3069232
  • 7,063
  • 6
  • 36
  • 61
12
votes
0 answers

How do connections and relaying work in MCSessions?

The Multipeer Connectivity Framework documentation is a bit lacking. Below I have several questions about connections and relaying. In order to make things easier, I created an image for each question. The legend is as follows: For each of the…
Senseful
  • 73,679
  • 56
  • 267
  • 405
12
votes
3 answers

Multipeer Connectivity: Invalid service type

I am trying to use Multipeer Connectivity framework but I am getting a crash while trying to instantiate MCNeaarbyServiceBrowser with the serviceType. Following is the code: private func setUpSession() { self.session = MCSession(peer:…
Vik Singh
  • 1,413
  • 2
  • 17
  • 34
12
votes
3 answers

multipeer connectivity test on iphone and a simulator simultaneously

Hello I was searching in all topics of the forum about how can i test an app which uses multipeer connectivity framework. Can someone tell me how can i test an app by using an iPhone device and a simulator simultaneously, player one for device…
bobadil
  • 123
  • 1
  • 6
12
votes
4 answers

Multipeer Connectivity framework for up to 45 devices

I hope to use the Multipeer Connectivity framework, and would appreciate any voices of experience on how best to proceed. I need a connection between a "coach" device and up to 45 "player" devices. They will all be in the same space, but no way to…
Dave Norfleet
  • 389
  • 2
  • 13
1
2 3
32 33