react-native-zeroconf icon indicating copy to clipboard operation
react-native-zeroconf copied to clipboard

Android returns {}

Open wojo1206 opened this issue 6 years ago • 5 comments
trafficstars

I got inconsistent result between platforms. None when scan with android and few when scanning on ios. Both share the same code and network. Using other tools I can confirm that services are advertising correctly on this network. I am on RN 0.59.8. This package seems to have limitations that are not documented. I got no error messages. Android always returns {} and resolved event is not invoked.

wojo1206 avatar May 28 '19 17:05 wojo1206

I've experienced something similar. It used to trigger the resolved event with all services, but now it doesn't anymore.

rolandjitsu avatar Jun 03 '19 10:06 rolandjitsu

Same issue here, nothing is returned at all.

knro avatar Jun 07 '19 08:06 knro

Any progress with that? someone?

gercog1 avatar Jun 19 '19 12:06 gercog1

Having the same issue that the resolvedevent is never invoked. For some reason it worked yesterday and without changing anything it doesn't work anymore. Anyone a solution?

edit: foundevent returns data but they never get resolved.

matthiasgoossens avatar Jul 17 '19 09:07 matthiasgoossens

This npm package [1]: https://github.com/tableau/react-native-dns-lookup is the only option if you want to get the ip address (local ip too) using mdns hostname. [2]: https://github.com/avertin/DnsTest/blob/master/App.js#L30 Here is an example by the contributor

whatdtech avatar Dec 15 '20 14:12 whatdtech