Local Wi-Fi UDP discovery works in Debug but stops working in TestFlight (React Native app)

Hi everyone, I am building a React Native iOS app that discovers audio devices on the local Wi-Fi network using UDP broadcast + mDNS/Bonjour lookup (similar to the “4Stream” app).

The app works 100% perfectly in Debug mode when installed directly from Xcode. But once I upload it to TestFlight, the local-network features stop working completely:

UDP packets never arrive

Device discovery does not work

Bonjour/mDNS lookup returns nothing

Same phone, same Wi-Fi, same code → only Debug works, TestFlight fails react-native-udp for UDP broadcast

react-native-dns-lookup for resolving hostnames

react-native-xml2js for parsing device responses

Local Wi-Fi UDP discovery works in Debug but stops working in TestFlight (React Native app)
 
 
Q