In my NativeScript app I need to get additional geolocation info like satellite count or satellite ids which isn't provided by nativescript-geolocation plugin.
I am trying to use GnssStatus class from android.location in NativeScript app with the following:
const gnssCb = new android.location.GnssStatus.Callback();
After that I get an error:
ERROR Error: JNI Exception occurred (SIGABRT)
What am I doing wrong? Or is there any alternative way I can get that info?
onSatelliteStatusChangedmethod implementation, try adding that.new android.location.GnssStatus.Callback({onSatelliteStatusChanged: function(status){}});cannot marshal javascript argument object object at index 0 to java type