Network Service Discovery


#1

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.

https://developer.android.com/training/connect-devices-wirelessly/nsd.html

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!


#2

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


#4

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 https://babasupport.org/routers/d-link-customer-service/713