Integrate Android Service on NativeScript App
Asked 07 September, 2021
Viewed 3K times
  • 61
Votes

I need to develop an app that should periodically check for available WiFi networks and trigger an action once an specific network is on range.

I plan to implement an Android service to handle the part on which it keeps checking for the available networks and make it broadcast a notification once the specific network is detected.

I'm wondering how to integrate that on a NativeScript App, what I mean is that I want to make the code on NativeScript subscribe to receive the notifications from the Android Service, and once it is received do something.

To be clear, I want the Service to be native (written on java) and somehow get it included on my NativeScript app, to make it interact with the GUI.

Thanks,

1 Answer