I am trying to write an nativescript application for android... i have a javascript file from where i need to call a intent to start a service. The code which i want to invoke in my javascript file is in https://github.com/NativeScript/nativescript-geolocation/blob/master/demo/app/main-page.ts from line 35 to 47. Also i have to port the entire piece of source of code present in https://github.com/NativeScript/nativescript-geolocation/blob/master/demo/app/background-service.ts to javascript file. i am not sure how to port code " @JavaProxy("com.nativescript.location.BackgroundService")" to javascript.
Regards, Akarsh