Questions tagged [mcsession]

An MCSession object enables and manages communication among all peers in a Multipeer Connectivity session

39 questions
1
vote
0 answers

Need to share songs with different devices using multipeer connectivity.

Requirement: We are able to make connection from host device to multiple slave devices. For example, if device A initiate connection to device B and C, the contributor devices can accept peer connection and connected to device A. Here A is master…
Neha
  • 63
  • 12
1
vote
1 answer

Multipeer Connectivity MCSession Stop Advertising when connected results in disconnect

I have a simple chat application which uses Multipeer connectivity to send text back and forth. I am using the MCSessionDelegate. -(void)advertiseSelf:(BOOL)shouldAdvertise{ if (shouldAdvertise) { _advertiser = [[MCAdvertiserAssistant alloc]…
Manesh
  • 528
  • 6
  • 20
1
vote
1 answer

MCSession is connecting, but never connected

I have my simulator and phone seeing each other and the one acting as a browser inviting the advertiser into a session. However, the only 2 state changes I see on either side is .Connecting and .NotConnected. I never see .Connected. Am I supposed to…
Aaron Bratcher
  • 6,051
  • 2
  • 39
  • 70
1
vote
0 answers

MCSession how to stream UIImages with NSStream

I'am trying to send UIImages each second over NSStream but i get a crash when decoding on NSData * data = [NSData dataWithBytes:buffer length:len]; *Uncaught exception: *** -[NSKeyedUnarchiver initForReadingWithData:]: incomprehensible archive…
Peter Lapisu
  • 19,915
  • 16
  • 123
  • 179
1
vote
1 answer

Sending file with MCSession between iOS Simulator and Device

I have an application for iPad that needs to send files from one device to another with peer Apple's Multipeer Connectivity library. The file is a zip file (I'm using ZipArchive for iOS: https://github.com/mattconnolly/ZipArchive) and I'm testing it…
Bedford
  • 1,136
  • 2
  • 12
  • 36
1
vote
0 answers

Session in Multipeer-Connectivity

There is four devices A、B、C and D,A connect with B and C connect with D and A connect with C but distance between B and C is too long to connect. Is A and C in the same session? Is B and D in the same session? How they communication in the…
shaichun
  • 59
  • 7
1
vote
1 answer

Multipeer Framework with multiple sessions at once?

I’m attempting to build a multi peer network app and I’ve got everything working for a single conversation between two users however the intention was to build a master- -> detail app like whatsapp where you have a list of conversations and tapping…
Ash R
  • 195
  • 4
  • 12
1
vote
1 answer

Authorizing a certificate for MCSession

I have created a self signed certificate in keychain and i am using MultipeerConnectivity framework to transfer data between devices. When we create a session we can pass securityIdentity when we invite peers in MCSession. -…
1
vote
1 answer

MCNearbyServiceAdvertiser delegate methods never called

Implementing an app with automatic connection between devices to exchange small bunch of data, using Multi-peer Connectivity framework and Nearby Services (both browser and advertiser). I built a Session Manager handling all connections details. Its…
phbardon
  • 127
  • 9
0
votes
1 answer

Not being able to keep connection stable and send data across devices using MultipeerConnectivity

I'm learning the basics of MultipeerConnectivity framework. I was trying to just send some data between two simulators, so I set up a small project and I've implemented the MCBrowserViewControllerDelegate, MCNearbyServiceAdvertiserDelegate and…
oneshot
  • 591
  • 1
  • 5
  • 27
0
votes
1 answer

MultipeerConnectivity declining connection

I'm trying to set up a bluetooth connection between two devices, here's my code: var peerID: MCPeerID! var mcSession: MCSession! var mcAdvertiserAssistant: MCAdvertiserAssistant! @IBAction func connectBlueTooth(_ sender: Any) { let actionSheet…
Idanis
  • 1,918
  • 6
  • 38
  • 69
0
votes
1 answer

Swift -Does the Bonjour NSNetServiceBrowser have a peer limit larger then MCSession's 8?

Using a MCSession, the session can only have 8 devices connected to it: Sessions currently support up to 8 peers, including the local peer I need way more than 8 peers. I came across this apple forums dev thread where someone asked a similar…
Lance Samaria
  • 17,576
  • 18
  • 108
  • 256
0
votes
2 answers

Type 'Class' does not conform to protocol 'MCSessionDelegate'

I'm working on migrating my code from Swift 2.X to 3.X and have already resolved majority of my runtime error except one that keeps on bugging out. I have all the required functions and have cleaned and deleted the derived data but it still saying…
0
votes
0 answers

scheduledTimer is not fired when using MCSession Swift3

I have made a GKMatch and MCSession wrapper for my online games. It was working fine on Swift2 but on Swift3 I have got a weird issue. When I am running the game with the GKMatch, it works fine, no issue. When I am changing over to the Nearby player…
Endre Olah
  • 875
  • 2
  • 9
  • 25
0
votes
0 answers

Can not send lightweight images using MultipeerConnectivity on iOS 11

On iOS 11, I can not send a file of light size using Multipeer Connectivity. However, on iOS 10, it was able to send regardless of size. If it could not be sent, the block in "completionHandler" of "MCSession.sendResource (at: withName: toPeer:…
amarron
  • 91
  • 1
  • 9