Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on iOS 17 #54

Open
mgeilich opened this issue Jan 2, 2024 · 2 comments
Open

Doesn't work on iOS 17 #54

mgeilich opened this issue Jan 2, 2024 · 2 comments

Comments

@mgeilich
Copy link

mgeilich commented Jan 2, 2024

NSNetServiceBrowser did not search with error dict [{
NSNetServicesErrorCode = "-72008";
NSNetServicesErrorDomain = 10;
}].

@B-O-B-G-I-T
Copy link

How did you find that? if you can give me some context maybe i can help you

@B-O-B-G-I-T
Copy link

B-O-B-G-I-T commented Apr 29, 2024

NSNetServiceBrowser did not search with error dict [{ NSNetServicesErrorCode = "-72008"; NSNetServicesErrorDomain = 10; }].

Thanks to leechupe, we have a solution #59 (comment)

You need to add in info.plist that

<key>NSBluetoothAlwaysUsageDescription</key>
<string>nearby connections</string>
<key>NSBonjourServices</key>
<array>
	<string>_mp-connection._tcp</string>
	<string>_mp-connection._udp</string>
</array>
<key>NSCameraUsageDescription</key>
<string>This app requires access to the camera.</string>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>

<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIRequiresPersistentWiFi</key>
<true/>

Modify the serviceType attribute of NearbyService for your use like this serviceType: 'mpconn' by serviceType: 'mp-connection'

For me it's working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants