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!
I'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
Yep. To close the loop here:
-
Multipeer Connectivity relies on Bonjour.
-
The doc you referenced explicitly states that Bonjour is not supported in an App Clip.
-
So Multipeer Connectivity is not supported in an App Clip.
This isn’t an accident but a deliberate design choice. If you’d like to see that change, I encourage you to file a bug with information about your requirements, that is, why using Bonjour makes sense in your App Clip.
Please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"