Hi! I have an app with Multipeer Connectivity setup and working properly.
I now would like to add an app clip that is also able to connect to the main app target via Multipeer Connectivity.
I've added the NSLocalNetworkUsageDescription as well as the NSBonjourServices to the app clip's info.plist, just like I did for the main app target, however when I run the app clip target, I get the following output at the Xcode console:
[MCNearbyServiceBrowser] NSNetServiceBrowser did not search with error dict [{
NSNetServicesErrorCode = "-72008";
NSNetServicesErrorDomain = 10;
}].
I'm now wondering if it is possible to have app clips leverage Multipeer Connectivity and, if so, what else I should do to resolve the issue.
Thanks in advance!
-
—
philippeboudreau
Add a CommentI've continued my research and I may have found an element of response to my own question on the following piece of documentation about app clips: https://developer.apple.com/documentation/app_clips/choosing_the_right_functionality_for_your_app_clip -
App Clips provide an in-the-moment experience and focus on offering the quickest possible solution to an everyday task, so some functionality works best in your full app. Reserve the following functionality for the full app:
Advanced networking features like Bonjour and low-level networking APIs like CFSocket, or POSIX functions; instead, use URLSession or the Network framework.