Network Service Discovery


I am developing a NativeScript app that needs to run Network Service Discovery (e.g., Bonjour) to detect the devices nearby. I am unable to find any existing plug-ins or docs on how to accomplish that. So, I am thinking of using native Android code for this purpose. The following doc explains how things work with native code.

I plan on invoking NsdManager.DiscoveryListener() directly in Javascript. This is through tns-platform-declarations. I wonder if you could give me some advice whether this is achievable or not. Thanks a lot!


It should be doable, besides tns-platform-declarations is just a set of typescript declarations which helps your IDE / TypeScript compiler to bypass errors.


When you developing the android app for network security discovery then you can take in mind to properly connect the networking device when your wifi router is on. when you using the internet and If your D-link router is not working properly then you can visit