becvert / cordova-plugin-zeroconf

Cordova ZeroConf Plugin
MIT License
81 stars 57 forks source link

Use Android's Network Service Discovery (NSD) #7

Closed becvert closed 7 years ago

becvert commented 8 years ago

NSD is available since Jelly Bean (API 16)

Objective: Pre-Jelly Bean devices will use JmDNS Jelly Bean and more recent devices will use NSD by default.

Important notes: DnsSdTxtRecord support is only enabled since Lollilop (API 21) but does not seem to work. Possible workaround using tinydnssd

Todos: An option to disable NSD altogether

References: http://developer.android.com/training/connect-devices-wirelessly/nsd.html https://code.google.com/p/android/issues/detail?id=136099

NeoLSN commented 7 years ago

https://github.com/andriydruk/RxDNSSD Some DnsSdTxtRecords can't be resolved by NSD, JmDNS and tinydnssd, but this library can. Can you please consider to use this library?

becvert commented 7 years ago

@NeoLSN thanks for the link. I'll have a look But I won't have much time to spend on this right now.

becvert commented 7 years ago

@NeoLSN see #14, I'll keep you updated

becvert commented 7 years ago

I won't implement NSD after all. Maybe someone else want to give it a shot. This plugin might rather move toward apple's dnssd at some stage (with or without the Rx paradigm)