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

Discovery on Android emulator?

Open jkoutavas opened this issue 3 years ago • 3 comments

My React Native app does fine discovering my bonjour service on iOS simulator, iOS hardware, and Android hardware, but doesn't succeed with discovery on Android emulator. Is there some kind of a configuration thing I can do to get this to work on emulator, or is it a known limitation?

I'm running the emulator on macOS with Android Studio.

jkoutavas avatar Oct 07 '21 16:10 jkoutavas

@jkoutavas try Genymotion's emulator, they have support for mDNS discovery using adb bridge commands. It takes some tweaking to make it actually work, but it's possible. Best recommendation imo is to buy a simple android phone for testing.

DennisSnijder avatar Nov 16 '21 14:11 DennisSnijder

Can't you use adb bridge on android emulator? @jkoutavas have you found a solution, I have the same issue...

dbreton333 avatar Nov 08 '22 16:11 dbreton333

I hhaven't seen a working example of NSD working on android. Here are some additional information for those who are curious https://developer.android.com/studio/run/emulator-networking

IsaaX avatar Apr 04 '23 18:04 IsaaX