sebastianhaberey / nsd

Flutter Network Service Discovery (NSD) Plugin
61 stars 30 forks source link

'_services._dns-sd._udp' not working on real IOS device. #67

Open skitsa1 opened 4 months ago

skitsa1 commented 4 months ago

Description

I got '_services._dns-sd._udp' working on a simulator, but when I try it on a real IOS device, it doesn't work. Please help.

Getting this error. [MethodChannelNsdPlatform] [2024-04-24 13:25:22.546129] [calls] Callback: onDiscoveryStartFailed {handle: b3036420-f8ad-46ec-a819-69cf24ec50e9} [MethodChannelNsdPlatform] [2024-04-24 13:25:22.536451] [calls] Call: startDiscovery {handle: b3036420-f8ad-46ec-a819-69cf24ec50e9, service.type: _services._dns-sd._udp}

Scenario

Run the example application

Platform

iOS

skitsa1 commented 4 months ago

Have identified is fixed when adding the following to info. list.

_services._dns-sd._udp

or

_dns-sd._udp

but then it only discovers other services that are on disclosed on info.plist "_http._tcp"

this is unfavourable because I am trying to discover all services and wont be able to disclose these all on info.plist as don't know what they are.

Not confident will be able to find solution to this one. Cheers

Infinical commented 4 months ago

@skitsa1 you need to requestfor multicast entitlement from apple for this to work

skitsa1 commented 4 months ago

Working. Much appreciated. Saved the project 10/10