Questions tagged [multipeer-connectivity]
The MultipeerConnectivity framework is an iOS 7 framework for connecting to nearby peers over Bluetooth, Wi-Fi, or P2P.
499
questions
0
votes
0
answers
34
views
Sending data device-to-device, Android or iOS agnostic with React Native
My use case is I want to enable two devices, Android or iOS (between them, or among them), to discover each other and exchange a small amount of data when in close proximity. I'm building the app with ...
0
votes
0
answers
28
views
libp2p Rust sending file gets stuff in loop
I am trying to send file from one terminal to other terminal by using the filesharing example. libp2p 0.52.2 version but the code keeps on running and doesn't give error on receiver side
Sender code
...
3
votes
1
answer
90
views
microphone not working while share screen + system audio shared using peerjs webrtc
We have tried to share screen audio. When sharing the screen, microphone and screen-sharing audio do not work together. Mic does not work when system audio is on. System audio does not working if end ...
1
vote
1
answer
71
views
MCNearbyServiceBrowser fails to connect after resetting services
Problem:
I'm currently working on a SwiftUI app that involves a multi-peer connectivity feature. The app allows one device to act as the host, while others can join the session. However, I'm ...
0
votes
1
answer
161
views
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 ...
1
vote
0
answers
33
views
How to send multiple data at once using Multipeer Connectivity?
I'm trying to send camera frames using the Multipeer Connectivity framework. What I want to do is there will be multiple devices (I'm gonna call it peer) that can connect to a specific host device (I'...
0
votes
0
answers
74
views
Why don't devices connect correctly? Take a look at the extra details:
Background
I am working on a SwiftUI app that has peer-to-peer networking with the Multipeer Connectivity framework. The main data structures at play in the connectivity are as follows:
PlayerService:...
0
votes
1
answer
188
views
How to stream camera preview using AVCaptureVideoOutput with MultipeerConnectivity framework?
I'm trying to create a camera remote control app with an iPhone as the camera and an iPad as the remote control. What I'm trying to do is send the iPhone's camera preview using the ...
0
votes
0
answers
274
views
How to check if user has granted Multipeer Connectivity to connect to other devices?
I'm starting to use iOS' Multipeer Connectivity and have the following:
class Connector : NSObject, ObservableObject
{
@Published var peers = [MCPeerID]()
@Published var event: String?
...
2
votes
0
answers
480
views
Multipeer Connectivity: [GCKSession] Not in connected state
I am using the Multipeer Connectivity framework to connect multiple users in my app. When I try to invite users via the MCBrowserViewController, it works. However, when I try to send data I get the ...
0
votes
1
answer
200
views
Stream Microphone Audio from one device to another using Multipeer connectivy and EZAudio
[TLDR: Receiving an ASSERTION FAILURE on CABufferList.h (find error at the bottom) when trying to save streamed audio data]
I am having trouble saving microphone audio that is streamed between devices ...
1
vote
0
answers
85
views
Multipeer Connectivity Issue: Peer is lost when sending invite
I am trying to establish a connection between two iOS devices using multiplier connectivity framework. I am able to find the nearby devices and add them to an array.
What I want to do is, allow a user ...
0
votes
1
answer
244
views
What is the best way to share real time data between multiple devices for a short time frame in IOS [closed]
I have an idea for an application where I would like the following to happen:
A group of people / their devices create a sharing session -->
They can set a time frame for this session (could be one ...
1
vote
0
answers
36
views
App is crashing on first run, but works on sequential ones. And UserState text is not working
Why is my app crashing whenever I press the host button for the first time. It happens when the invite function is called. It works when I close the app and try again. I am not sure why, because ...
0
votes
1
answer
366
views
Multipeer Connectivity - Need help sending and receiving data correctly
I am trying to make an app where users can create and join "Lobbies", or sessions, using the MultipeerConnectivity framework. Whenever a user tries to join a lobby, I want them to receive ...
4
votes
1
answer
639
views
MCNearbyServiceAdvertiser Server did not publish
I created a Swift project using the Multipeer Connectivity class. I used MCNearbyServiceAdvertiser.
import UIKit
import MultipeerConnectivity
class TestMutilpeer: NSObject {
var SERVICE_NAME ...
0
votes
1
answer
148
views
How can I add multipeer connectivity to an ARKit app that doesn't have 3D assets, but uses UITextView for rendering instead? [ Swift ]
So I am trying to add a multipeer element to this Sticky Note app from Apple's own Sample Code. Link to Sample Code page There are several examples of multipeer ARKit apps but the problem here is, ...
0
votes
0
answers
97
views
Multipeer Connectivity (Swift): Prioritize LAN over Wi-Fi?
I am building an iOS game with Swift. I have implemented MPC for nearby players to connect and play a game with each other.
I have a strange situation:
Case 1 (no lag/latency): 2 simulators are ...
0
votes
1
answer
587
views
Configuring Multipeer Connectivity to use a medium of connection between macOS and iOS
I'm using the multipeer connectivity library to establish a p2p connection between an iOS device and a macOS device. The documentation states:
"In macOS and tvOS, it uses infrastructure Wi-Fi, ...
0
votes
0
answers
67
views
How to customize MCBrowserViewController in swift for macOS?
Currently I browse a session using the following:
let mcBrowser = MCBrowserViewController(serviceType: "service", session: p2pSession)
mcBrowser.delegate = self
mcBrowser....
0
votes
0
answers
95
views
Connect Postgres Database to BigQuery
Is it possible to connect a PostgreSQL database with Bigquery?
0
votes
0
answers
25
views
Swift photo loaded from file rotated 90 degrees [duplicate]
I'm taking UIImages and sending them over iOS' Multipeer framework. Here's the steps I take to do so:
/// Save images to filesystem before sending over Multipeer
func save(image: UIImage) -> ...
1
vote
0
answers
619
views
WebRTC Answer SDP returns recvonly instead of sendrecv
I have a web based WebRTC client and I am having the following functionality:
Step 1. CreateOffer with both audio and video tracks set to sendrecv.
Step 2. Receive and Answer with both audio and ...
7
votes
1
answer
1k
views
Multipeer Connectivity - Get file transfer(Internet) speed and File Size in Swift 5
I am transferring photo peer to peer. All things works fine but I am not able to get the photo(file) transfer speed i.g internet speed. Like MB the file is transferred. Second I want to fetch the size ...
-1
votes
1
answer
136
views
Arkit Multi-peer function for Unity project
It looks as if I can use the Multi-Peer features of Arkit with my Unity project to be deployed on iOS. Apple states in its example that Realitykit is only the renderer and ARkit handles the multi-...
0
votes
1
answer
153
views
The Round Trip Time of iOS MultipeerConnectivity is very unstable
I am doing a project using iOS MultipeerConnectivity network with 2 iPhones. When I was measuring the round trip time (RTT), I found that the RTT is very unstable.
What I did in code was that I send a ...
0
votes
0
answers
44
views
Why not connected with peer?
I want to build a send files application.
It has a Friends function.
If I find a friend, I will connect to them.
There will be 'Friends' and there will be 'Strangers'
If I find a stranger Peer, I will ...
2
votes
1
answer
454
views
Multipeer Connectivity peers sometimes failing to re-connect in perfect network conditions
When using the Multipeer Connectivity framework to connect multiple iPhones / iPads using an "every device advertises a service + everyone invites everyone" implementation, I sometimes see a ...
1
vote
0
answers
166
views
I am getting Missing Purpose String but i have added that in info.plist The Missing Purpose String is "NSNearbyInteractionAllowOnceUsageDescription"
The Error I am getting on email from Apple App Store while I am publishing my app to Apple App Store Testflight from my mac , although I am unable to see my build on testflight forum.And the email ...
0
votes
2
answers
106
views
Connecting 30 iPads
I am currently programming an app for my school.
During the lesson the teacher needs to send and stream data to the students. There is a case in which one of the students streams the data to everyone ...
1
vote
0
answers
231
views
Multipeer connectivity auto connect
I'm trying to get my head around Apple's multipeer connectivity, and I got it working in a predictable way now. Given the enormous amounts of questions here and elsewhere on the web, that is a victory ...
0
votes
1
answer
226
views
MultiPeerConnectivity programmatically
I am making an application that transfers data between phones. how can I connect and accept a connection request from another device programmatically without MCBrowserViewController
0
votes
0
answers
328
views
ZMQ for dynamic peers in P2P application
I want to design a P2P application but without a dedicated peer (server) which can bind sockets. All the peers can join and leave anytime, it is a dynamic case. I tried to use ZMQ sockets with REQ-REP ...
0
votes
0
answers
149
views
Can't see nearby Device while scanning in MultipeerConnectivity
I am working to get nearby Devices using MultipeerConnectivity framework.
But When I scan for devices in simulator and hosted session in Real device. I can't see any device in MCBrowserViewController. ...
3
votes
2
answers
869
views
Can I use wildcard on info-plist for Bonjour services
My apps using bonjour service to conversation with each other via local network.
I am facing a problem on Xcode12 with OS14 device.
A device publish a service with server type name depends on self ...
0
votes
1
answer
775
views
How can i access cross-platform(android/iOS) bluetooth detection for flutter?
Newbie here. I am trying to make a hybrid mobile app in flutter that will detect nearby Bluetooth devices based on some unique ID. I want to read that unique ID from the endpoint and compare it onto ...
1
vote
0
answers
53
views
connected two people using peer to peer if they are on different networks
I have seen one demo where I can connected 2 devices if they are on same network
but when I shift one of the device to data pack and keep another one on wifi.. they can not fined each other.
Can ...
1
vote
1
answer
918
views
How to connect multiple devices (implement multiple ongoing sessions) using Apple's NearbyInteraction Framework
I'm writing an app that needs to have the functionality of multiple iPhones connecting using Apple's NearbyInteraction framework. I need to have multiple ongoing NISessions to connect multiple iPhones ...
2
votes
1
answer
4k
views
Does google meet use WebRTC
I am new to webrtc development, I would like to create a conference room with multiples connections. I have read about webrtc and peer communication. I would like to know if google meet used one peer ...
2
votes
0
answers
122
views
How to get physics to work in collaborative sessions using RealityKit?
I am trying to create a collaborative AR App, that allows multiple users to add blocks to the scene, which should have physics and interact with each other. To do that I am using RealityKit.
I set up ...
6
votes
0
answers
321
views
Is it possible to override WebRTC connection timeout?
I have implemented WebRTC calls in my project, When the internet got disconnected then WebRTC throws a disconnected state immediately and Closed/Failed state after 10/15 secs.
Can I override these 10/...
13
votes
3
answers
4k
views
NSNetServiceBrowser did not search with error -72008 on iOS 14
The same error is also triggered setting up Multipeer Connectivity (which uses Bonjour). The code I was using for initiating Bonjour browsing and Multipeer Connectivity was modified from the Apple ...
2
votes
0
answers
204
views
MultiPeer Connectivity not connecting swift 5
I'm developing a simple Tic Tac Toe game.
I'm trying to use MultipeerConnectivity for connecting two devices together, here's my code:
AppDelegate:
var mpcHandler = MPCHandler()
MPCHandler:
class ...
1
vote
1
answer
329
views
[MCAdvertiserAssistant advertiser:didNotStartAdvertisingPeer:]: unrecognized selector sent to instance
The issue was started appearing along with iOS 14.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MCAdvertiserAssistant advertiser:didNotStartAdvertisingPeer:]:...
1
vote
0
answers
112
views
Class 'ARCollaborationData' disallows secure coding
I have an app that offers collaboration in AR and I was following the docs on how to send ARSession.CollaborationData using MultipeerConnectivity.
https://developer.apple.com/documentation/arkit/...
5
votes
2
answers
1k
views
MultipeerConnectivity does not work as expected on iOS 14
When the MCBrowserViewController is invoked
-[MCBrowserViewController advertiser:didNotStartAdvertisingPeer:]: unrecognized selector sent to instance
error message is thrown.
when ...
1
vote
1
answer
424
views
Multipeer connectivity data stream issue over Wifi
I'm using multipeer connectivity to synchronize between several devices connected through Wifi the movement of nodes in a 3D SceneKit environnement.
The node movement is calculated on the master ...
0
votes
1
answer
349
views
How do I invite users to my session using Multipeer Connectivity framework?
In viewDidLoad I setup my session:
peerID = MCPeerID(displayName: UIDevice.current.name)
mcSession = MCSession(peer: peerID, securityIdentity: nil, encryptionPreference: .required)
...
0
votes
0
answers
292
views
Multipeer connectivity not accepting connection
I'm building an app which can share images using MPC when the sender select host a session and the receiver select join session and select the sender device name it is not connecting to the sender it ...
-1
votes
1
answer
464
views
How to communicate from multiple device to single device without internet [closed]
I want to send data from multiple apple watches to a single iPhone without internet connection. Bluetooth is not a good option because of limited number of devices that can join at time and low range. ...