multipeer-connectivity

NSNetServiceBrowser did not search with error -72008 on iOS 14

情到浓时终转凉″ 提交于 2021-02-20 04:40:07
问题 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 sample code and worked fine under iOS 13. 回答1: You need to add the following keys to the Info.plist: NSLocalNetworkUsageDescription and NSBonjourServices . E.g. <key>NSLocalNetworkUsageDescription</key> <string>Reason for using Bonjour that the user can understand</string> <key>NSBonjourServices<

RealityKit Multipeer Session - Object Sync Issue

久未见 提交于 2020-05-30 07:59:39
问题 I can’t figure out the common objects of 3D models for multipeer sessions (with their synchronization). Design: Users of the application can enter a multipeer session, place objects on the stage, while other peers can see these models, their transformations, interact with these objects themselves and place their own - while also maintaining the ability to interact with their objects to other peers of the session. Questions I have encountered: How to publish one instance of a model for one

Multipeer Connectivity : Share Files to all peers simultaneously

前提是你 提交于 2020-01-25 06:15:29
问题 I'am working on a topic multipeer connectivity framework. I got a great idea about this framework using the below link : http://www.appcoda.com/intro-multipeer-connectivity-framework-ios-programming/ But my problem is ,i can send chat messages to all connected peers and is received by them. But i need that same functionality in File sharing. I need to send files simultaneously to all connected peers. Is that possible???? 回答1: Yes, it is possible. If you want to send large files (like tens of

How to create a PKCS12 compatible with iOS's Multipeer Connectivity with node-forge?

假如想象 提交于 2020-01-07 07:46:06
问题 I am trying to achieve Multipeer Connectivity communications security through clients authentication using X509 certificate . To do so, I am generating the clients' certificates in my server using node-forge . First, the X509 is created then it is transformed into a PKCS12 base64 string that is returned to the client. That is basically the code I am using : var username = "client1" // Create key pair var pki = forge.pki; var keys = pki.rsa.generateKeyPair(2048); var cert = pki

Creating a custom MCBrowserViewController

此生再无相见时 提交于 2020-01-01 03:29:09
问题 Is there a way to create a UITableView housing the same information found in an MCBrowserViewController ? My current code only allows a standard view to be pushed that is not in the same design as my app: self.browserVC = [[MCBrowserViewController alloc] initWithServiceType:@"chat" session:self.mySession]; [self presentViewController:self.browserVC animated:YES completion:nil]; Any ideas? Thanks in advance! 回答1: Set your View Controller as the delegate to MCNearbyServiceBrowser and MCSession

Disable Nagle's algorithm for NSOutputStream

时光怂恿深爱的人放手 提交于 2019-12-30 06:53:08
问题 I am creating a multiplayer game using MPCF. You control a spacehip on the iPad using the iPhone. I am experiencing various amount of lag and latency and buffering/pauses at random times and intervals and have now landed on Apples Technical Q&A NW26 paper that talks about disabled the Nagle Algorithm. Im trying it out but my program keeps crashing and I dont understand why. It seem to be that CFWriteStreamCopyProperty always return NULL. - (void)stream:(NSStream *)stream handleEvent:

Swift MultipeerConnectivity crash DateComponents unconditionallyBridgeFromObjectiveC

柔情痞子 提交于 2019-12-23 07:29:41
问题 I have a repeatable crash that ends in a EXC_BREAKPOINT like in the image below: Steps to reproduce the crash: Connect two devices Begin a transfer using func sendResource(at resourceURL: URL, withName resourceName: String, toPeer peerID: MCPeerID, withCompletionHandler completionHandler: ((Error?) -> Void)? = nil) -> Progress? Disconnect the device that initiated the transfer by calling func disconnect() Edit: Another way to reproduce the crash, by calling Progress.cancel() Steps: Connect

iOS: How to start of development of iPad app like App in one iPad become admin and other iPad of same app become listner

萝らか妹 提交于 2019-12-23 04:55:35
问题 I need to create an iPad app of following requirement: Suppose there are 4 iPads with this app installed. Now One of the iPad app become presenter so other 3 iPads with same app opened automatically become listener. Now user of the Presenter iPad will slides picture from the photo gallery of the app. So same picture should be automatically slides from the app photo gallery of listener all 3 iPads. I searched a lot but i didn't find even any clue how to achieve this functionality. Can i use