becvert / cordova-plugin-zeroconf

Cordova ZeroConf Plugin
MIT License
81 stars 57 forks source link

watch() never finds anything in my network on Android #12

Closed mishoboss closed 7 years ago

mishoboss commented 8 years ago

Hello, watch() function never returns a result. Even if I try .zeroconf.watch('local.', function(result) { and there a lot of services on my local network. Other Android Bonjour apps find these services without problems.

This is Android 6.0.1

becvert commented 8 years ago

anything with _http._tcp.local. or _tcp.local. or .local. ?

emcniece commented 7 years ago

Testing this right now, and I do get results for cordova.plugins.zeroconf.watch('_tcp.local.', console.log) and cordova.plugins.zeroconf.watch('_http._tcp.local.', console.log). I initially thought that there were no results at all, but now it seems like I simply do not understand the type query.

If this is entered in a developer console while debugging an Android device, the results take a few seconds to appear.